iphone

iphone - running sdk 4.0.1 on Iphone 3.1

I'm creating iPhone application using iPhone SDK 4.0.1 I've the following lines of code in my application related to notifications from media player [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(moviePreloadDidFinish:) name:MPMoviePlayerLoadStateDidChangeNotification ...

How to create a dialog in a iphone application.

Hello All: How to create a dialog in a iphone application. If you know,please tell me.Thank you very much! ...

How to enable touch began in UIScrollView?

Am using UIScrollview, when i am trying to capture touch event in UIscrollview is not responding. how should i achieve it? i am using UILable for showing the text. Thanks Sri ...

How can I set text for cell in UITableview from NSDictionary

I have dictionary with 5 keys and corresponding value. How I can set the value in cell of UITable when I dont know key? d=[[NSDictionary alloc] initWithObjectsAndKeys:@"Air Bus",@"ab", @"Boeing 787 ",@"787",@"Some Plane", @"sp",nil]; ...

How can i get Original order of NSDictionary/NSMutableDictionary ??

i have created NSMutableDictionary with 10 keys.Now i want to access NSMutableDictionary keys in a same order as it was added to NSMutableDictionary (using SetValue:* forKey:* ); How can i achieve that ? ...

Check if attribute exists

Is there better way rather than to fetch with predicate and see the number of results in order to check that the attribute exists when adding it into managed context? I'm trying to make an attribute unique for given entity... ...

iPhone images still stored in memory?

So I have several viewControllers, each creates images using "imageWithContentsOfFile" in order to conserve memory and then sets objects to nil and releases them in the dealloc method. There are no memory leaks. The problem is memory still builds up when switching views. So for example I'll be in view1 and it'll be using 8MB of memory an...

iphone write to file fails

Heey, I'm writing some data to a plist file but it fails on the device but not in the simulator. Im kinda lost, dont know where to look for a solution. This is my code: NSMutableDictionary *dict = [[NSMutableDictionary alloc] init]; [dict setObject:nameField.text forKey:@"name"]; [dict setObject:emailField.text forKey:@"email"]; BOOL ...

NSLocale always returns en_US

I want to get current selected iphone language. If using "NSLocale" it returns always the same language. It seems that this is not the one you choose inside iphone settings. NSLocale * locale = [NSLocale currentLocale]; NSString * localLanguage = [locale objectForKey:NSLocaleLanguageCode]; NSLog (@"Language : %@", localLanguage); // Ret...

convert the Address into Latitude and Longitude for Google Maps in iPhone

How to convert the Address into Latitude and Longitude in Objective C? I want to use Google Maps over there i iPhone. ...

after call end, relaunch the previous app in iphone

I can make a call from my app by use this APIs. [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:XXXXXX"]]; I would like to return to my app where I left after the users ends the call. Is that possible? ...

iPad - Hide Navigation Bar in Landscape - Cuts Short when Showing again in Portrait

I am upgrading my iPhone application to run "natively" on iPad and am coming into a difficulty when hiding the navigation bar in landscape and showing it again in portrait. In my BaseViewController: - (void) willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { [super w...

How to load and display image in OpenGL ES for iphone

Hi, I'm a newbie and trying to display a sprite on my iPhone screen using OpenGL ES. I know its far simpler and easier to do it with cocos2d but now I'm trying to code directly on OpenGL. Is there any simple yet efficient way to load and display sprites in OpenGL ES. What I've found until now is much much complex. :( ...

iphone recording to an existing file

I beleive most of this is going for the database tag but my question is specifically on AVAudioRecorder. Lets say i recorded initially to a file using AVAudioRecorder in the .cif format. I want to record someother sound which will append to the recorded file. The recorder will usually overwrite if there is an existing file of that name ...

iphone API's for tea time application

i want to know what API's in iPhone that we used to: Achieve an action by pressing a button Show normal input fields Give access to a persistent storage Realize a count-down timer ...

iPhone contact's image

I would like to make frequently changes for the contact's image on the iPhone. This app: Photo Phonebook, did it with facebook profile pictures. In the app, there are automatics updates of contact's image: Next time a Facebook friend calls, their Facebook photo appears on your iPhone. It also appears in the address book. When your ...

how to launch instrument in xcode

Can any one please let me know, how to launch instrument tool in xcode environment for testing the memory leaks. Note: iam not connected with the device, checking it only with the simulator - XCODE - Version 3.2.3 , iOS -4 Thanks in advance ...

Update and delete entities in two different process

Hi everybody, I'm working on an ipad application that use coredata. It download information on a database that is on the web, and record them in coredata. The application is based on a split view. My problem was to make the update of the data in background. Here is how I've done : - I've create an NSOperation, that does the download and ...

Question of embedding Mail in App

After reading "More iPhone 3 Development Tackling iPhone SDK3(Chapter12)", I tried to found a project which can send e-mail without quitting the App. But, there are two problems. First, when the To, Cc, Bcc or the body text information has completed by keyboard, how to close the pop-up keyboard? Second, loading a HTML into the UIWebVi...

How to check whether a music is playing or paused in AudioQueue

Hi, I am using AudioQueueStart for playing music and AudioQueuePause for pausing. Is there any way in AudioQueues to check whether the music is playing or not, I want to Pause music only if it is playing. ...