@@ -414,11 +414,6 @@ PKPushRegistry *pushRegistry;
[self startTimerServerUnauthorized];
}
-- (void)loginDismiss
-{
- [self startTimerServerUnauthorized];
-}
-
- (void)startTimerServerUnauthorized
{
self.timerServerUnauthorized = [NSTimer scheduledTimerWithTimeInterval:k_timerServerUnauthorized target:self selector:@selector(checkPassword) userInfo:nil repeats:YES];
@@ -33,7 +33,6 @@
@protocol CCLoginDelegate <NSObject>
- (void)loginSuccess:(NSInteger)loginType;
-- (void)loginDismiss;
@end
@@ -146,6 +146,9 @@
- (void)viewDidDisappear:(BOOL)animated
[super viewDidDisappear:animated];
+
+ // Start timer
+ [appDelegate startTimerServerUnauthorized];
- (BOOL)textFieldShouldReturn:(UITextField *)textField
@@ -401,7 +404,6 @@
- (IBAction)handleAnnulla:(id)sender
- [self.delegate loginDismiss];
[self dismissViewControllerAnimated:YES completion:nil];
@@ -921,11 +921,6 @@
});
- //
#pragma mark -
#pragma --------------------------------------------------------------------------------------------
#pragma mark ===== Peek & Pop =====
@@ -476,10 +476,6 @@ class CCMore: UIViewController, UITableViewDelegate, UITableViewDataSource, CCLo
appDelegate.selectedTabBarController(Int(k_tabBarApplicationIndexFile))
- func loginDismiss() {
- }
extension CCMore: SwiftModalWebVCDelegate, SwiftWebVCDelegate{
@@ -181,8 +181,6 @@
- (void)loginSuccess:(NSInteger)loginType
- [appDelegate startTimerServerUnauthorized];
[[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"initializeMain" object:nil userInfo:nil];
@@ -367,11 +367,6 @@
#pragma mark === Add Account ===