单军华
2018-04-18 de88ae127e305e0b153c327b073645f9353cace5
pregnancy_guard/BaseProject/AppDelegate.m
@@ -97,10 +97,10 @@
    // 要使用百度地图,请先启动BaiduMapManager
    self.mapManager = [[BMKMapManager alloc]init];
    BOOL ret = [self.mapManager start:@"ZiqQxvKGjZVNbITouYn7dIwDjb1CbKcy" generalDelegate:self];
    if (!ret) {
        NSLog(@"manager start failed!");
    }
//    BOOL ret = [self.mapManager start:@"ZiqQxvKGjZVNbITouYn7dIwDjb1CbKcy" generalDelegate:self];
//    if (!ret) {
//        NSLog(@"manager start failed!");
//    }
    
    // 添加网络监听
    self.hostReachability = [Reachability reachabilityWithHostName:@"www.baidu.com"];
@@ -110,21 +110,8 @@
    [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 showLoginPage];
    
    //异常对象:NSException