Hello!
I want to prevent application terminate when the user press Home Button. I want that application does nothing, whene the user press the HomeButton.
I can output message in Console like this:
- (void) applicationWillTerminate(UIApplication *)application {
NSLog(@"Msg");
}
but i did not find how to cancel the application termination on iphone sdk. The method
- (NSTerminateReply) applicationShouldTerminateNSApplication *)application {
return NSTerminateCancel;
}
of course, is not working on IPhone SDK.
Is there any similar method on iphone sdk?
[Edited:] This software will be used on IPod Touch. There will be a lot of users, and they are supposed to use only one application.
Thanks.
I want to prevent application terminate when the user press Home Button. I want that application does nothing, whene the user press the HomeButton.
I can output message in Console like this:
- (void) applicationWillTerminate(UIApplication *)application {
NSLog(@"Msg");
}
but i did not find how to cancel the application termination on iphone sdk. The method
- (NSTerminateReply) applicationShouldTerminateNSApplication *)application {
return NSTerminateCancel;
}
of course, is not working on IPhone SDK.
Is there any similar method on iphone sdk?
[Edited:] This software will be used on IPod Touch. There will be a lot of users, and they are supposed to use only one application.
Thanks.