Commit 001618e5841f0aeee089c46ec908e1eae54686ee

Authored by zhangxiaowen
1 parent 551a21e2

no message

CNLiveSettingModule/Classes/Controller/CNLiveSettingController.m
@@ -26,6 +26,8 @@ @@ -26,6 +26,8 @@
26 @end 26 @end
27 27
28 @implementation CNLiveSettingController 28 @implementation CNLiveSettingController
  29 +static const NSInteger timeValue = 1.5;
  30 +
29 #pragma mark - 加载数据 31 #pragma mark - 加载数据
30 - (void)loadData { 32 - (void)loadData {
31 NSArray *data = @[ 33 NSArray *data = @[
@@ -302,6 +304,7 @@ @@ -302,6 +304,7 @@
302 // [XWUserManager removeUserInfo]; 304 // [XWUserManager removeUserInfo];
303 [[SDImageCache sharedImageCache] clearMemory]; 305 [[SDImageCache sharedImageCache] clearMemory];
304 [[SDImageCache sharedImageCache] clearDiskOnCompletion:^{ 306 [[SDImageCache sharedImageCache] clearDiskOnCompletion:^{
  307 + [QMUITips showSucceed:@"清除成功" inView:self.view hideAfterDelay:timeValue];
305 [self getSDCacheSize]; 308 [self getSDCacheSize];
306 309
307 }]; 310 }];
@@ -333,4 +336,13 @@ @@ -333,4 +336,13 @@
333 return image?image:[UIImage imageNamed:imageName inBundle:[NSBundle mainBundle] compatibleWithTraitCollection:nil]; 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 @end 348 @end