Steven 7 месяцев назад
Родитель
Сommit
273f787c84

+ 1 - 1
KulexiuForStudent/KulexiuForStudent.xcodeproj/xcshareddata/xcschemes/KulexiuForStudent.xcscheme

@@ -51,7 +51,7 @@
       </Testables>
    </TestAction>
    <LaunchAction
-      buildConfiguration = "TEST"
+      buildConfiguration = "Release"
       selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
       selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       launchStyle = "0"

+ 2 - 0
KulexiuForStudent/KulexiuForStudent/Common/Base/LoadingManager/KSHudLoagingManager.m

@@ -49,6 +49,7 @@
     dispatch_main_async_safe(^{
         if (self->_loadingView) {
             [self.loadingView hideLoadingView];
+            self->_loadingView = nil;
         }
     });
 }
@@ -83,6 +84,7 @@
     dispatch_main_async_safe(^{
         if (self.HUD) {
             [self.HUD removeFromSuperview];
+            self->_HUD = nil;
         }
         [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];
     });

+ 0 - 14
KulexiuForStudent/KulexiuForStudent/Module/Chat/Controller/KSChatConversationViewController.m

@@ -55,20 +55,6 @@
     }];
 }
 
-- (void)viewWillAppear:(BOOL)animated {
-    [super viewWillAppear:animated];
-
-    //TODO: 页面appear 禁用
-   [[IQKeyboardManager sharedManager] setEnable:NO];
-}
-
-- (void)viewWillDisappear:(BOOL)animated {
-    [super viewWillDisappear:animated];
-
-    //TODO: 页面Disappear 启用
-   [[IQKeyboardManager sharedManager] setEnable:YES];
-}
-
 - (void)clearConversation {
     
     NSString *conversationID = [NSString stringWithFormat:@"c2c_%@",self.conversation.userID];

+ 0 - 14
KulexiuForStudent/KulexiuForStudent/Module/Chat/Controller/KSGroupConversationController.m

@@ -27,20 +27,6 @@
     [self requestData];
 }
 
-- (void)viewWillAppear:(BOOL)animated {
-    [super viewWillAppear:animated];
-
-    //TODO: 页面appear 禁用
-   [[IQKeyboardManager sharedManager] setEnable:NO];
-}
-
-- (void)viewWillDisappear:(BOOL)animated {
-    [super viewWillDisappear:animated];
-
-    //TODO: 页面Disappear 启用
-   [[IQKeyboardManager sharedManager] setEnable:YES];
-}
-
 - (void)clearConversation {
     
     NSString *conversationID = [NSString stringWithFormat:@"group_%@",self.conversation.groupID];

+ 13 - 0
KulexiuForStudent/KulexiuForStudent/Module/Chat/Controller/TXCustom/KSTXBaseChatViewController.m

@@ -27,6 +27,19 @@ static UIView *gCustomTopView;
 
 @implementation KSTXBaseChatViewController
 
+- (void)viewWillAppear:(BOOL)animated {
+    [super viewWillAppear:animated];
+    // 页面appear 禁用
+    [IQKeyboardManager sharedManager].enableAutoToolbar = NO;
+    [IQKeyboardManager sharedManager].enable = NO;
+}
+
+- (void)viewWillDisappear:(BOOL)animated {
+    [super viewWillDisappear:animated];
+    // 页面Disappear 启用
+    [IQKeyboardManager sharedManager].enableAutoToolbar = YES;
+    [IQKeyboardManager sharedManager].enable = YES;
+}
 
 
 #pragma mark - Life Cycle