Commit 2a68eed0b4f80a7bec5d47529a7842d83246d927
1 parent
1b2999a8
no message
Showing
2 changed files
with
4 additions
and
2 deletions
CNLiveSettingModule.podspec
CNLiveSettingModule/Classes/Controller/CNLiveSettingController.m
| ... | ... | @@ -295,6 +295,7 @@ static const NSInteger timeValue = 1.5; |
| 295 | 295 | } |
| 296 | 296 | return _tableView; |
| 297 | 297 | } |
| 298 | + | |
| 298 | 299 | - (UIButton *)logout{ |
| 299 | 300 | if(!_logout){ |
| 300 | 301 | _logout = [UIButton buttonWithType:UIButtonTypeCustom]; |
| ... | ... | @@ -318,6 +319,7 @@ static const NSInteger timeValue = 1.5; |
| 318 | 319 | [self.navigationController popViewControllerAnimated:YES]; |
| 319 | 320 | } |
| 320 | 321 | } |
| 322 | + | |
| 321 | 323 | - (void)logoutDidClicked:(UIButton *)btn{ |
| 322 | 324 | QMUIAlertAction *sure = [QMUIAlertAction actionWithTitle:@"退出登录" style:QMUIAlertActionStyleDefault handler:^(__kindof QMUIAlertController *aAlertController, QMUIAlertAction *action) { |
| 323 | 325 | [UIApplication sharedApplication].delegate.window.rootViewController = nil; |
| ... | ... | @@ -395,5 +397,4 @@ static const NSInteger timeValue = 1.5; |
| 395 | 397 | } |
| 396 | 398 | } |
| 397 | 399 | |
| 398 | - | |
| 399 | 400 | @end | ... | ... |