iphone-sdk-3.0

How can we know which cell is touched in tablView when a custom button in the cell is touched ?

I need to know which cell is touched when any button inside the cell is touched. I have custom UIButton *button1 in the cell and UIButton *button2 on the cell.imageView.image of the cell. I wrote selectors for both buttons.; But, I could not differentiate the buttons for each cell. How do I know which cell button was touched. What to do,...

Getting error when compiling the build in device 3.1.3

I am getting this error "Command /usr/bin/codesign failed with exit code 1" when compiling the build I kept the source to "Device 3.1.3" What is going wrong? ...

UIImagePickerController presented inside view

Is that possible to present a UIImagePickerController inside a view, instead of using it modal or inside a popover? I have tried this, without success... if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypePhotoLibrary]) { UIImagePickerController *picker = [[UIImagePickerController alloc] init...

When the current toolbar is touched previous toolbar items are activated.

I have a UIToolBar *toolbar1. I have 3 buttons on the toolbar. And the tool bar is at the bottom of the view. The buttons are like library button, moreApps button, recordVideo button. If I touch the library button a new view(a UITableViewController) appears. I used presentModelViewController for it. If I touch moreApps button a new view...

Cocoa NSString explode

Hi all, I have a NSString: @"1a,1b,1c,1d,5c". I want this NSString separated into a NSMutableArray, but I don't know how. I think it is fairly simple but I can't find it (maybe because my English isn't good enough to find a good description for it to search on). Regards, Dodo ...

NSString to NSUInteger

Hi all, I've got a number in a NSString @"15". I want to convert this to NSUInteger, but I don't know how to do that... Regards, dodo ...

Does iPad support 4096x4096 view?

Does iPad support view with a 4096x4096 frame? ...

UITableView and SearchBar problem

Hi all, I'm trying to add a Search bar to my UITableView. I followed this tutorial: http://clingingtoideas.blogspot.com/2010/02/uitableview-how-to-part-2-search.html. I'm getting this error if I type a letter in the search box: Rooster(10787,0xa05ed4e0) malloc: *** error for object 0x3b5f160: double free *** set a breakpoint in malloc_...

Regular Expression doesn't match

Hi All, I've got a regular expression in my cocoa-touch app (using RegexKitLite). NSString *week = [[NSString alloc] initWithFormat:@"%@", [pageContent stringByReplacingOccurrencesOfRegex:@"<select name=\"week\" class=\"selectbox\" style='width:134' onChange=\"doDisplayTimetable(NavBar, topDir);\">(.+?)<option value=\"(.+?)\">(.+?)...

I would like to resize a window/image in a nib at load time.

I have an iPhone app that I'm porting to the iPad. I store several of the ViewControllers in xib's that I would like to resize when they're loaded. For example my startup screen with options is a bitmap that can easily scale up (despite the mis-matched aspect ratio) and I'm trying to figure out where I have ability to resize the image/...

size of an image

From times to times I have to know the width and height of images. I am using the following code: UIImage *imageU = [UIImage imageWithContentsOfFile:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"myImage.png"]]; CGFloat imageW = CGImageGetWidth(imageU.CGImage); CGFloat imageH = CGImageGetHeight(imageU.CGImage); ...

Cannot play a recorded sound on device.

I'm using the exact code from the iPhone Application Programming Guide Multimedia Support to use AVAudioRecorder to record a file to the disk and then AVAudioPlayer to load and play that file. This is working fine in the simulator but is not working on the device. The file gets loaded (we can see the NSTimeInterval) but does not play (...

creating iPhone draggable objects

I need to figure out how in the world do I create object instances (an image) and place them on the screen and have it draggable. I know how to draw an image (png) onto the screen, but how do I make it draggable? ...

Accessing CoreData relationships

I have the following core data model with two entities: entity "item" which holds name, date, description and a to many relationship "image". image is optional. entity "image" holds url, name and relationship to one item. I load the executed Fetchrequest into this NSArray "entityArray" This is what I do to display my data in a UITabl...

UIPickerView not displaying

I have a UIPickerView on a UIView. I've implemented its protocol in the .h and delegates in the .m files: <UIPickerViewDataSource, UIPickerViewDelegate> In IB, I've connected the above to the picker, which I also have an IBoutlet for. The methods look like this: - (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)thePicker...

Toggle Wifi On/Off using MobileWifi private framework

Hello, For a private project using the iPhone SDK (not for the app store), I would like to toggle wifi on & off. I've done something similar for Bluetooth, but can't find the required information for Wifi. I assume I need to use the MobileWifi framework. Can anyone give some directions and/or code? Most likely I expect I need a header f...

iPhone application-Memory handling issues

Hi All, I am having some memory management issues in my app. Maybe someone may help me out here. 1) While checking for leaks in intruments, when I deploy and run the app on device, the virtual memory utilized, starts from 50 MB(even though i've just launched the app and am on the first screen). My resources contribute to 2.6 MB of it a...

scrolling a UIScrollView Programatically

hi, I want an idea to scroll a UIScrollView without user inputs. how to do that ? ...

Regular Expression doesn't match

Hi All, I've got a string with very unclean HTML. Before I parse it, I want to convert this: <TABLE><TR><TD width="33%" nowrap=1><font size="1" face="Arial"> NE </font> </TD> <TD width="33%" nowrap=1><font size="1" face="Arial"> DEK </font> </TD> <TD width="33%" nowrap=1><font size="1" face="Arial"> 143 </font> </TD> </TR></TABLE> in...

-[<CALayer: 0x5584190> display]: Ignoring bogus layer size

-[ display]: Ignoring bogus layer size (255211754908294243945860531626574872576.000000, 340282346638528859811704183484516925440.000000) Can any one please tell me whats this warning about? the app is crashin g on some devices showing this.. Any suggestion would be greatly helpful.. Thanks, ...