如何检测iPhone上首次启动应用程序我如何才能检测到第一次发射- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
// if very first launch than perform actionA
// else perform actionB}方法?
3 回答
婷婷同学_
TA贡献1844条经验 获得超8个赞
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ if (![[NSUserDefaults standardUserDefaults] boolForKey:@"HasLaunchedOnce"]) { [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"HasLaunchedOnce"]; [[NSUserDefaults standardUserDefaults] synchronize]; } return YES;}
潇潇雨雨
TA贡献1833条经验 获得超4个赞
application:didFinishLaunching:withOptions:
[GBVersionTracking track];
[GBVersionTracking isFirstLaunchEver];
[GBVersionTracking isFirstLaunchForVersion];[GBVersionTracking currentVersion];[GBVersionTracking previousVersion];[GBVersionTracking versionHistory];
- 3 回答
- 0 关注
- 507 浏览
添加回答
举报
0/150
提交
取消