单军华
2018-05-04 25f409185a53e5e7beb17518a684298d92d31b3f
pregnancy_guard/BaseProject/AppDelegate.m
@@ -110,22 +110,9 @@
    [self.internetReachability startNotifier];
    [self updateInterfaceWithReachability:self.internetReachability];
    
    // Override point for customization after application launch.
    UIUserNotificationType types = UIUserNotificationTypeBadge |
    UIUserNotificationTypeSound | UIUserNotificationTypeAlert;
    
    UIUserNotificationSettings *mySettings =
    [UIUserNotificationSettings settingsForTypes:types categories:nil];
    
    if(mySettings != nil)
    {
        [[UIApplication sharedApplication] registerUserNotificationSettings:mySettings];
    }
    //_currentDevice = _selectedDevice.mac;
    [self showHomePage];
    [self showLoginPage];
    
    //异常对象:NSException
    //参数:将函数的地址给它