我有一个在 Unity3d 中开发的游戏,并将其导出为 Xcode 形式,并且未调用 Unity3d 生成的 iPhone_target2AppDelegate.m 文件中的UIApplication
委托,我尝试通过显示以下内容在此方法中放入一些代码:applicationDidFinishLaunching
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];
}
但是屏幕上什么也没有!
请有任何帮助
已解决:查看帖子底部:)