| | |
| | | |
| | | @implementation EZDeviceTableViewController |
| | | |
| | | -(void)viewWillDisappear:(BOOL)animated |
| | | { |
| | | // self.navigationController.navigationBarHidden = YES;//2021-02-01 添加隐藏navigationBarHidden |
| | | } |
| | | |
| | | - (void)viewDidLoad |
| | | { |
| | | [super viewDidLoad]; |
| | | |
| | | // [[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(0, -60) |
| | | // forBarMetrics:UIBarMetricsDefault]; |
| | | |
| | | // Uncomment the following line to preserve selection between presentations. |
| | | // self.clearsSelectionOnViewWillAppear = NO; |
| | |
| | | // self.title. |
| | | |
| | | self.logoutBtn.title = NSLocalizedString(@"Logout", @"注销"); |
| | | self.logoutBtn.title = @""; |
| | | [self.logoutBtn setEnabled: NO]; |
| | | |
| | | [self checkEZIsLogin]; |
| | | } |
| | |
| | | - (void)viewWillAppear:(BOOL)animated |
| | | { |
| | | [super viewWillAppear:animated]; |
| | | |
| | | self.navigationController.navigationBar.hidden = NO;//2021-02-01 |
| | | |
| | | if (_needRefresh) |
| | | { |
| | | _needRefresh = NO; |
| | |
| | | // self.navigationItem.rightBarButtonItem = self.addButton; |
| | | }]; |
| | | }else{ |
| | | [[EZGlobalSDK class] getAreaList:^(NSArray *areaList, NSError *error) { |
| | | [EZOPENSDK getAreaList:^(NSArray *areaList, NSError *error) { |
| | | EZAreaInfo *areaInfo = areaList.firstObject; |
| | | [[EZGlobalSDK class] openLoginPage:[NSString stringWithFormat:@"%ld",(long)areaInfo.id] |
| | | [EZOPENSDK openLoginPage:[NSString stringWithFormat:@"%ld",(long)areaInfo.id] |
| | | completion:^(EZAccessToken *accessToken) { |
| | | [[GlobalKit shareKit] setAccessToken:accessToken.accessToken]; |
| | | [[EZGlobalSDK class] setAccessToken:accessToken.accessToken]; |
| | | [EZOPENSDK setAccessToken:accessToken.accessToken]; |
| | | [self addRefreshKit]; |
| | | // self.navigationItem.rightBarButtonItem = self.addButton; |
| | | }]; |
| | |
| | | } |
| | | |
| | | - (void) go2VideoTalk:(EZDeviceInfo *)deviceInfo { |
| | | EZVideoTalkViewcontroller *vc = [EZVideoTalkViewcontroller videoTalkVC]; |
| | | vc.deviceInfo = deviceInfo; |
| | | [self.navigationController pushViewController:vc animated:YES]; |
| | | // EZVideoTalkViewcontroller *vc = [EZVideoTalkViewcontroller videoTalkVC]; |
| | | // vc.deviceInfo = deviceInfo; |
| | | // [self.navigationController pushViewController:vc animated:YES]; |
| | | } |
| | | |
| | | - (IBAction)go2MultiPlay:(id)sender { |