uiapplicationdelegate

startUpdatingLocation issue, cannot return to app

I have a weird bug. It seems like a platform issue but since it is only happening in my app, I guess it is not (: I can reproduce this about 50% of the time. When I call [locationManager startUpdatingLocation] and location services are DISABLED, the user is greeted with an alert box asking if they would like to go to the phone setti...

iPhone: invalidate NSTimer from app delegate crashes app

I am trying to run a method from my app delegate, that saves an object in other class as well as invalidates a timer. I have it set up so that when my app exits, it runs the method in my class and saves and stops the timer. In app delegate: - (void)applicationWillResignActive:(UIApplication *)application { // Save the mission bec...

iPhone - Memory management question ???

Let's say i have a navigation controller in my app delegate. Why is it necessary to release it on dealloc method in my appDelegate? When the dealloc method of my appDelegate is called, it means user is exiting the app, so the leak doesn't affect my application. So why would i release anything in dealloc method of my appDelegate? ...

Delegate to Self Concept!

Hi Guys, Spare me if you find this too basic and generic. But i hope answering would benefit lot of noobs out there like me. Why we set Delegate to self? Thanks, Taimur ...

access methods and variables in first navigation controller from pushed view

Hi guys, I normally use UIViews to make my apps - but this one I am using a navigationcontroller. I am pushing a view to the top where I want to add items to an array. However, I cannot access the main navigation controller methods etc. Here's the set up 1) AppDelegate adds navigation controller [window addSubview:navigationController...

App Delegate giving warning: 'id <UIApplicationDelegate>' does not conform to the 'UIAlertViewDelegate' protocol

Hello everyone, I'm currently using a UIAlertView at startup in my app with the UIAlertViewDelegate. It all works fine. The only problem is, I get the warning "type 'id ' does not conform to the 'UIAlertViewDelegate' protocol" every time I reference the App Delegate, giving me about 32 warnings. Can anyone shed some light on why I'm g...

Using the applicationWillTerminate method doesn't seem to be working...or I am not using it right...

I am wanting to save some app state data for when the user is quitting the app. I am thinking that I should be using the applicationWillTerminate method inside of my appDelegate, but when I try and do anything there, it's not doing anything: - (void) applicationWillTerminate:(UIApplication *)application { NSLog(@"test"); } When I run...