I want a function to run when my iOS application first launches, so I placed it in
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
within AppDelegate.m. However, my function is not getting called when my app starts up. Why?
I guess your AppDelegate isn’t being created and/or added as the delegate of the application. Are you doing this with a XIB or programmatically?
Check if your -init and/or -awakeFromNib routines are being invoked.