判断ios程序第一次启动
来源:互联网 发布:互联网大会2017 知乎 编辑:程序博客网 时间:2024/06/05 04:37
方法有很多,但一列出一种
在didFinishLaunchingWithOptions里面写
if(![[NSUserDefaultsstandardUserDefaults] boolForKey:@"firstStart"]){
[[NSUserDefaultsstandardUserDefaults] setBool:YESforKey:@"firstStart"];
NSLog(@"第一次启动");
UIAlertView *a = [[UIAlertViewalloc]initWithTitle:@"1"message:nildelegate:selfcancelButtonTitle:@"ok"otherButtonTitles:nil];
[a show];
}else{
NSLog(@"不是第一次启动");
UIAlertView *a = [[UIAlertViewalloc]initWithTitle:@"2"message:nildelegate:selfcancelButtonTitle:@"ok"otherButtonTitles:nil];
[a show];
}
0 0
- 判断ios程序第一次启动
- ios 判断app程序第一次启动方法
- ios 判断app程序第一次启动方法
- ios 判断app程序第一次启动方法
- ios 判断app程序第一次启动方法
- iOS判断程序第一次启动的方法
- ios 判断app程序第一次启动方法
- ios 程序判断是否第一次启动
- ios 程序判断是否第一次启动
- ios 判断app程序第一次启动方法
- ios 判断app程序第一次启动方法
- 判断程序第一次启动
- iOS小技巧13- 判断iOS App程序安装后第一次启动,更新后第一次启动
- iOS - 判断程序是否是第一次启动 & 进程延迟
- iOS - 判断程序是否是第一次启动 & 进程延迟
- iOS - 判断程序是否是第一次启动 & 进程延迟
- 判断程序是不是第一次启动
- 判断ios app 第一次启动
- auto的使用
- HDU2063(匈牙利算法)
- LeetCode刷题笔录Reverse Words in a String
- 用Github和Octopress搭建博客
- SQLite数据库拼写工具类
- 判断ios程序第一次启动
- Linux系统开机过程详解
- Hibernate工作原理及为什么要用?
- 常用知识点积累
- log4j.properties配置详解
- 单片机寄存器设置
- 解决openfire在使用MySQL数据库后的中文乱码问题(转)
- 移动五年,创业者眼中的变迁
- How to Modify a ATI Switchable G…