June 2011
Intermediate to advanced
590 pages
19h 31m
English
Let’s write some quick code to get a better understanding of the different application state transitions.
You already know about self, an implicit variable that points to the instance that is executing the current method. There is another implicit variable called _cmd, which is the selector for the current method. You can get the NSString representation of a selector with the function NSStringFromSelector.
In HomepwnerAppDelegate.m, implement the application state transition delegate methods so that they print out the name of the method. You’ll need to add three more methods:
- (void)applicationWillResignActive:(UIApplication *)application ...
Read now
Unlock full access