//appdelegate中写如下代码
func application(application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
if NSUserDefaults.standardUserDefaults().boolForKey("everLaunched") == false {
NSUserDefaults.standardUserDefaults().setBool(true, forKey: "everLaunched")
NSUserDefaults.standardUserDe
swift判断app第一次启动
最新推荐文章于 2021-12-27 18:40:19 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)