| | |
| | | LoginPage *root = [[LoginPage alloc]init]; |
| | | UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:root];//先将root添加在navigation上 |
| | | nav.navigationBarHidden = YES; |
| | | NSLog(@"123"); |
| | | [self.window setRootViewController:nav];//navigation加在window上 |
| | | [self.window makeKeyAndVisible]; |
| | | } |
| | |
| | | [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 |
| | | //参数:将函数的地址给它 |