How do I make sure the application quits properly when I hit the home button? When I hit the home button and open the app again, it starts off from where I left it and it has all the values (I’m making a calculator application). how do I make sure it starts from the beginning and not from where I left it. my app uses pickers and textfields. I added the following code and it’s not helping!
- (void)viewDidUnload
{ self.stage_picker = nil;
self.grade_picker = nil;
self.Pos_lymppicker = nil;
self.Ex_lymphpicker = nil;
self.text1 = nil;
self.text2 = nil;
self.text3 = nil;
self.text4 = nil;
[super viewDidUnload];
}
Just add the boolean key UIApplicationExitsOnSuspend or Application does not run in background
to your info.plist and set the value to yes