I have a game developed in Unity3d and I export it to be in Xcode form, and the UIApplication delegate applicationDidFinishLaunching in the iPhone_target2AppDelegate.m file generated by Unity3d are not called, I try to put some code in this method by showing a UIAlertView:
- (void)applicationDidFinishLaunching:(UIApplication *)application
{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Hello" message:@"It Works" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
[alert show];
[alert release];
// Override point for customization after app launch
[window makeKeyAndVisible];
}
but nothing show up on the screen !
any help please
Solved : look at the bottom of the post 🙂
I solve it, it seems that the AppController.h+.m is the one response for handling the
UIApplicationdelegates, and if you take a look at the AppController.m file you will see that they are already exist like theapplicationDidFinishLaunchingand others.Also I put some code in
applicationDidFinishLaunchingand it works.