From 48c5a2c66c549d26fecadc6d2dad1924fdd1cc8b Mon Sep 17 00:00:00 2001
From: Davin <591807572@qq.com>
Date: 星期四, 27 七月 2023 13:52:08 +0800
Subject: [PATCH] bugfix 猫眼呼叫问题修复
---
Demo/EZOpensdk_iOS_4.15.1_build20201104/Demo/EZOpenSDKDemo/UIViewControllers/EZDeviceTableViewController.m | 25 +++++++++++++++++++------
1 files changed, 19 insertions(+), 6 deletions(-)
diff --git a/Demo/EZOpensdk_iOS_4.15.1_build20201104/Demo/EZOpenSDKDemo/UIViewControllers/EZDeviceTableViewController.m b/Demo/EZOpensdk_iOS_4.15.1_build20201104/Demo/EZOpenSDKDemo/UIViewControllers/EZDeviceTableViewController.m
index 431da2e..abad069 100644
--- a/Demo/EZOpensdk_iOS_4.15.1_build20201104/Demo/EZOpenSDKDemo/UIViewControllers/EZDeviceTableViewController.m
+++ b/Demo/EZOpensdk_iOS_4.15.1_build20201104/Demo/EZOpenSDKDemo/UIViewControllers/EZDeviceTableViewController.m
@@ -43,9 +43,17 @@
@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;
@@ -58,6 +66,8 @@
// self.title.
self.logoutBtn.title = NSLocalizedString(@"Logout", @"娉ㄩ攢");
+ self.logoutBtn.title = @"";
+ [self.logoutBtn setEnabled: NO];
[self checkEZIsLogin];
}
@@ -66,6 +76,9 @@
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
+
+ self.navigationController.navigationBar.hidden = NO;//2021-02-01
+
if (_needRefresh)
{
_needRefresh = NO;
@@ -105,12 +118,12 @@
// 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;
}];
@@ -377,9 +390,9 @@
}
- (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 {
--
Gitblit v1.8.0