iOS判断手机APP第一次启动
2018-07-20 来源:open-open
ios开发-判断手机APP第一次启动
代码:
//判断是不是第一次启动
if (![[NSUserDefaults standardUserDefaults]boolForKey:@"fristLaunch11"]) {
[[NSUserDefaults standardUserDefaults]setBool:YES forKey:@"fristLaunch11"];
[[NSUserDefaults standardUserDefaults] synchronize];
//使启动界面停留 2.0 秒
[NSThread sleepForTimeInterval:2.0];
userGuideViewController = [[UserGuideViewController alloc] init];
self.window.rootViewController = userGuideViewController;//设置启动根视图
[userGuideViewController release];
}
else
{
[NSThread sleepForTimeInterval:2.0];
getPicViewController = [[GetPicViewController alloc] init];
self.window.rootViewController = getPicViewController;
[getPicViewController release];
}
标签: 代码
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点!
本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。
下一篇:mysql 批量删除
最新资讯
热门推荐