| | |
| | | [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 |
| | | //参数:将函数的地址给它 |