简体   繁体   English

如何知道何时使用Default.png从头开始启动应用程序?

[英]How to know when an app has been launched from scratch using Default.png?

有没有办法确定该应用程序是从头开始启动的,这意味着它还没有从后台唤醒,但真的是从无处开始,包括Default.png或Default-iPad.png的显示?

In your App delegate there is a method, 在你的App委托中有一个方法,

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
   UIAlertView * alert = [[UIAlertView alloc] initWithTitle:@"Only at launch" message:@""   delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
   [alert show];
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM