- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
//ios8.0之后设置,
UIUserNotificationSettings *setting = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeBadgecategories:nil];
//通过application告诉系统,对系统的设置
[application registerUserNotificationSettings:setting];
return YES;
}
//系统版本号
[[UIDevice currentDevice]systemVersion]