Commit ce844d90 authored by 艾娇平's avatar 艾娇平

获取是否首次启动

parent e8b8219f
......@@ -221,11 +221,16 @@
}
}
//TODO: 待艾娇平验证
- (BOOL)isAppFirst {
// 获取app初始启动时间
NSString *app_initial_time = [GMCache fetchObjectAtDocumentPathWithkey:@"app_initial_launch_time"];
return [app_initial_time isNonEmpty];
Class cls = NSClassFromString(@"GMLaunchManager");
if ([cls respondsToSelector:@selector(shareManager)]) {
BOOL app_first_launch = [cls performSelector:@selector(appIsFirstLaunch)];
return app_first_launch;
} else {
return NO;
}
}
- (void)updateLocation {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment