iphone

NSXMLParser and namespace elements

I am using NSXMLParser to parse a Feedburner/atom feed. I can get most elements to work however I am not sure how to parse the following: I would like to get at and store the href from this tag. How do I do this? Thanks -Tom Printy ...

how to call an iphone application from different application

hi experts, is it any possibilities to invoke/call iphone application from different application, if so means, whats the snippet for that.. ...

Why do I get a "security policy error" when launching my iPhone OS app?

I created an iPhone OS 2.2 app some time ago and recently installed the 3.1 SDK. When I try to run my app on my (3.1) iPod Touch, the launch window says "Error from Debugger: Error launching remote program: security policy error." Viewing the iPod Touch's Console (via the Console tab for my device in Xcode's Organizer) shows: Wed Feb ...

Converting NSData to base64

Hello, How to convert NSData to base64. i have NSData and want to convert into base64 how can i do this? ...

download audio from web and play

I am creating an iphone application and would like to download an audio file from the web (which I should be able to do without any assistance) but I am not familiar with any method to play that file on the device. Any assistance would be greatly appreciated, thank you :) ...

Xcode documentation update items stuck on 'Getting...'

I installed Xcode 3.2.1 with the latest iPhone SDK, but the developer documentation for certain classes says it is "preliminary" and was last updated in early 2009. I know that it's not "preliminary" and Apple online developer docs confirm it. I went to Preferences > Documentation and noticed that the iPhone 3.1 Library item has greyed o...

Fixing predicated NSFetchedResultsController/NSFetchRequest performance with SQLite backend?

I have a series of NSFetchedResultsControllers powering some table views, and their performance on device was abysmal, on the order of seconds. Since it all runs on main thread, it's blocking my app at startup, which is not great. I investigated and turns out the predicate is the problem: NSPredicate *somePredicate = [NSPredicate predi...

How do I save my iPhone application data without a server?

Is there any way to save data without connecting to server on the iPhone? If so, please describe how. ...

Obtaining double value out of array, iphone

NSDecimalNumber *lat = [[NSDecimalNumber alloc]initWithDouble:sqlite3_column_double(selectStatement, 1)]; [latt addObject:lat]; [lat release]; CLLocationCoordinate2D annot; annot.latitude = [[latt objectAtIndex:k]doubleValue]; The above 2 codes shows the creation and retrieving of double valu...

How to set the text of a back button on a UINavigationBar?

The Situation: I have a UIViewController that is governed by a navigation controller. I am able to set the title of the navigation bar covering the UIViewController by simply calling self.title = @"title". But, I want to be able to set the back button text of the navigation bar, too (for different languages n' such..) The Problem: I don...

iPhone - Need some reference code for card game.

I am going to build a card game. Game will be like MahJong. I want some reference code or link to start with. If you have any, then please share it. ...

UIImagePickerController: Detecting Camera button (shutter) pressed

I would like to call a method that takes an NSNotification immediately after the user presses the camera shutter (i.e when the "Preview" tab bar has the buttons "Retake" and "Use"). I can't use the didFinishPickingImage method because at this time the user has already pressed the "Use" button. I have already implemented this by camer...

-(void)dealloc = How?

Hello ! every one. I have a little query regarding the memory management. Let's begin with an example. Assume we have a class as follows. @interface myClass : NSObject { NSString *xyz; } @end Now, see the implementation. @interface myClass : NSObject { NSString *xyz; } @end @implementation myClass -(void)abc{ // xyz a...

iPhone Simulator leaks vs iPhone Device Leaks??

Is it possible that there will still be leaks when running my app on an iPhone even if the simulator has absolutely none?? ...

Problem Unlocking Password Protected PDF documents.

Hello, I need help unlocking Encrypted PDF Documents. I have tried the following without success. CFURLRef pdfURL = CFURLCreateWithFileSystemPath (NULL, documentsDirectory, kCFURLPOSIXPathStyle, 0); //1 pdf = CGPDFDocumentCreateWithURL((CFURLRef)pdfURL); BOOL encrypted = CGPDFDocumentIsEncrypted(pdf); if (encrypted) { // Try 1: ...

What localization code should you use in XCode for the "Mexican Spanish" locale

In iTunes connect, you can submit Spanish and Mexican Spanish localizations. I'm using the "spa" locale for Spain (Spanish), but "spm" doesn't work for Mexico in the simulator. Ideally I think I'd like to use a locale code that would work for all latin american countries Spanish, as I think they prefer the Mexican variant. What is the ...

iPhone OCUnit, exited abnormally with code 139, what is it?

iPhone sdk 3.1.2, xcode 3.1.4, mac os x 10.5.8, I'm a newbie using OCUnit comes with iphone sdk. The only error i get is: error: Test rig '/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.2.sdk/Developer/usr/bin/otest' existed abnormally with code 139 (it may have crashed). Does anyone know what it is? T...

How to debug a AVAudioPlayer play failure?

I'm using an AVAudioPlayer to play a mono AIFF file from my app's Documents directory. On the simulator, [player play] returns YES and I hear the file playing. On the device the play method returns NO and nothing happens. I grabbed the file via the Organizer - it plays back fine on my Mac and seems to be well-formed. I realize the simul...

Another quick iPhone Memory Question! Real Memory?

How much real memory should my iphone app be using? What's going too high? ...

Using textField:shouldChangeCharactersInRange:; how do I get the text including the current typed character?

//find below, the code example & associated result - (BOOL) textField: (UITextField *)theTextField shouldChangeCharactersInRange: (NSRange)range replacementString: (NSString *)string { if (theTextField == textField1){ [textField2 setText:[textField1 text]]; } } This code produces... textField2 is "12", when textF...