Skip to content

Commit

Permalink
优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
boai committed Jul 14, 2016
1 parent c721b0f commit 27792ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ - (void)clearCache
NSString *clearMessage = [@"需要清除缓存 " stringByAppendingFormat:@"%.2fM ?", cacheSize];

BA_Weak;
[self BAAlertWithTitle:@"温馨提示:" message:clearMessage andOthers:@[@"确 定"] animated:YES action:^(NSInteger index) {
[self BAAlertWithTitle:@"温馨提示:" message:clearMessage andOthers:@[@"取 消", @"确 定"] animated:YES action:^(NSInteger index) {

if (index == 0)
{
return ;
}
if (index == 1)
{
[clearCacheManager ba_myClearCacheAction];
NSString *msg = [NSString stringWithFormat:@"成功清除缓存:%.2fM", cacheSize];
Expand Down

0 comments on commit 27792ad

Please sign in to comment.