March 2012
Intermediate to advanced
590 pages
22h 48m
English
A C application begins by executing a main function. An Objective-C application is no different, but we haven’t seen main in any of our iOS applications. Let’s take a look now.
Open main.m in the HypnoTime project navigator. It looks like this:
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv,
nil, NSStringFromClass([HypnoAppDelegate class]));
}
}
The function UIApplicationMain creates an instance of a class called ...
Read now
Unlock full access