Skip to content

Commit

Permalink
增加一个版本判断
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoMinster committed Sep 5, 2017
1 parent 48005d5 commit fbe38ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion BeeHive/BHAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
[[BHModuleManager sharedManager] triggerEvent:BHMSplashEvent];
});

[UNUserNotificationCenter currentNotificationCenter].delegate = self;
if ([UIDevice currentDevice].systemVersion.floatValue >= 10.0f) {
[UNUserNotificationCenter currentNotificationCenter].delegate = self;
}

#ifdef DEBUG
[[BHTimeProfiler sharedTimeProfiler] saveTimeProfileDataIntoFile:@"BeeHiveTimeProfiler"];
Expand Down

0 comments on commit fbe38ff

Please sign in to comment.