Commit 001618e5841f0aeee089c46ec908e1eae54686ee
1 parent
551a21e2
no message
Showing
1 changed file
with
12 additions
and
0 deletions
CNLiveSettingModule/Classes/Controller/CNLiveSettingController.m
| ... | ... | @@ -26,6 +26,8 @@ |
| 26 | 26 | @end |
| 27 | 27 | |
| 28 | 28 | @implementation CNLiveSettingController |
| 29 | +static const NSInteger timeValue = 1.5; | |
| 30 | + | |
| 29 | 31 | #pragma mark - 加载数据 |
| 30 | 32 | - (void)loadData { |
| 31 | 33 | NSArray *data = @[ |
| ... | ... | @@ -302,6 +304,7 @@ |
| 302 | 304 | // [XWUserManager removeUserInfo]; |
| 303 | 305 | [[SDImageCache sharedImageCache] clearMemory]; |
| 304 | 306 | [[SDImageCache sharedImageCache] clearDiskOnCompletion:^{ |
| 307 | + [QMUITips showSucceed:@"清除成功" inView:self.view hideAfterDelay:timeValue]; | |
| 305 | 308 | [self getSDCacheSize]; |
| 306 | 309 | |
| 307 | 310 | }]; |
| ... | ... | @@ -333,4 +336,13 @@ |
| 333 | 336 | return image?image:[UIImage imageNamed:imageName inBundle:[NSBundle mainBundle] compatibleWithTraitCollection:nil]; |
| 334 | 337 | } |
| 335 | 338 | |
| 339 | +#pragma mark - CNLiveSettingNavigationBarDelegate | |
| 340 | +- (void)navigationBar:(CNLiveSettingNavigationBar *)navigationBar actionEvents:(NSString *)actionEvents{ | |
| 341 | + if ([actionEvents isEqualToString:@"1"]) { | |
| 342 | + [self goBack]; | |
| 343 | + }else if ([actionEvents isEqualToString:@"2"]){ | |
| 344 | + | |
| 345 | + } | |
| 346 | +} | |
| 347 | + | |
| 336 | 348 | @end | ... | ... |