iphone

Rendering UIImage/CGImage into CGPDFContext results in... blankness!

Hi all, I'm trying to take an image that I have in a image object and render into a Core Graphics PDF context-- happens to be on an iPhone but this question surely applies equally to desktop Quartz. This UIImage is a simple color-on-white image at about 600x800 resolution. If I (say) turn it into a PNG file, that file looks exactly as ex...

Case insensitive comparison NSString

Hi, Can anyone point me to any resources about case insensitive comparison in Objective C? It doesn't seem to have an equivalent method to str1.equalsIgnoreCase(str2) Thanks, Teja ...

how to prevent MPMoviePlayer controls from hiding

I am trying to implement a custom MPMoviePlayer to play mp3 audio. I have got it working in portrait mode along with an overlay window over the native controls - thanks to other stackoverflow posts. The current issue is the song progress control shows up when the media window opens (blue bar taking up the first 40 odd pixels), but see...

tableview - unrecognized selector sent to instance

Hi, I'v just got this error in my app. 2010-04-06 03:58:55.505 EasyPay DPS[6530:207] *** -[NTItems tableView]: unrecognized selector sent to instance 0x397af90 2010-04-06 03:58:55.515 EasyPay DPS[6530:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NTItems tableView]: unrecognized s...

Can you capture an image from the webcam on an iphone in Javascript?

Basically just looking to see if you can capture an image from the webcam in javascript? I know you can capture the GPS position in an iphone in javascript so I'd figure there might also be extensions to do images as well. ideally doing this in a cross platform way would be great. Basically it would mean we could develop a web app i...

Unrecognised selector sent to instance uitableview

I'm getting error: Unrecognised selector sent to instance, upon inspection, I see there is an issue in this section of code, and more specifically: [self.tableView insertSubview:ovController.view aboveSubview:self.parentViewController.view]; - (void) searchBarTextDidBeginEditing:(UISearchBar *)theSearchBar { if(searching) return; ...

Getting redefinition of View Controller pickerView:titleForRow:forComponent error

Hi-- I'm working my way through the book Head First iPhone Development (O'Reilly). Am having trouble on page 68 with the following method and function; I get the error "redefinition of ViewController pickerView:titleForRow:forComponent error. Have checked the code for spaces; seems to be OK. Can you check the code and tell me what's wro...

iPhone Mobile Safari File System Access

Is it possible to write to a file in a native iPhone application and have a Safari browser read from that file after having the browser opened from the native app? Alternatively (and this would be great!), would it be possible to launch a mobile Safari webapp from a native iPhone app, and have that application access the OS 3.0 External...

how can i change the size of (particular one)cell which is the part of uitableview(grouped) iphone ?

how can i change the size of (particular one)cell which is the part of uitableview(grouped) iphone ? ...

UITableView not displaying parsed data

I have a UITableView which is setup in Interface Builder and connected properly to its class in Xcode. I also have a "Importer" Class which downloads and parses an RSS feed and stores the information in an NSMutableArray. However I have verified the parsing is working properly (using breakpoints and NSlog) but no data is showing in the ...

How i access the array of CGPoints to draw the graph?

Hi, I have the code in which i want to develop the graph.The code is, NSArray *coordinate = [[NSArray alloc] initWithObjects: @"42,213", @"75,173", @"108,153", @"141,133", @"174,113", @"207,73", @"240,33", nil]; CGContextSetRGBFillColor(ctx, 255, 0, 0, 1.0); CGContextSetLineWidth(ctx, 8.0); for(int intIndex = 0; intIndex < [coordinate c...

how can i display a image on button which is presented on UINavigationController iphone ?

how can i display a image on button which is presented on UINavigationController iphone ? ...

Can i create custom touch events for iPhone

Can i create custom touch events for iPhone?? will the device support for creating my own touch event handling ? ...

iPhone Development - Using NSPredicate to retrieve most recently added record from CoreData

I want to retrieve the most recently added record from CoreData. I was wondering if that's possible using NSPredicate? If so, how? e.g. i have a one-to-many relationship between Department and Staff, and i want to fetch the Staff record that was most recently employed. The Staff table has a date field which can be used. I don't want t...

Get content length from UIWebView

I am looking to find out if a web page has changed, I was going to use the content length of the web page but have not seen a way to do so. Any ideas? Or can anyone think of another way to check periodically if a web page has changed? Any ideas are appreciated. Thanks, Chris ...

background music stops after 3/4 runs in iphone app

I am playing sounds in loop in my app. So it should continue playing through out the app. but sometimes it stops after playing sound for 3/4 times.I don't understand whats happening. I am using audio-toolbox framework for playing sound. creating audio queue and then playing sounds in loop. I am also playing sound from ipod library using...

how to add a label and button in the same line in a tableview

I am using UICatalog example and trying to find whether it is possible to add a label next to a button. Please let me know how to approach this problem ...

How to do long polling from iPhone application?

I want to create a iPhone chat application and i do not have any experience of socket programming so can u please help me understand How can i do long polling from iPhone application? Also can NSURLConnection be used for this purpose or we need to use some low level API? Are there any libraries available for the same? ...

Accessing native iPhone addressbook database and performing add and delete contacts?

Hi, In my application I need to implement the address book which should contains the native addressbook details, and the user should be able to add and delete from the address book and it should be updated in the native iphone addressbook. I read somewhere that the iphone native address book database is accesible. In documentation also...

iPhone in App purchase : Working but Not

Hi, I have added in App purchase functionality within my application. We have tested it successfully on iPhone (in sandbox mode). After successfully testing, we sent the application for final testing to tester situated at other country. In strange case, the tester is not able to test in App purchase functionality. He is getting "Invali...