Add a Cue box effect import third-party Mbprogresshud
#import "Mbprogresshud+mj.h"
/** * Clean Cache The first method */-(void) Clearcache{dispatch_async (Dispatch_get_global_queue (Dispatch_queue_priority_defau LT, 0), ^{nsstring *cachpath = [Nssearchpathfordirectoriesindomains (Nscachesdirectory, N Suserdomainmask, YES) objectatindex:0]; Nsarray *files = [[Nsfilemanager Defaultmanager] subpathsatpath:cachpath]; NSLog (@ "Files:%lu", [Files Count]); For (NSString *p in files) {Nserror *error; NSString *path = [Cachpath stringbyappendingpathcomponent:p]; if ([[[Nsfilemanager Defaultmanager] Fileexistsatpath:path]) {[[Nsfilemanager Defaultmanager] Re Moveitematpath:path error:&error]; }} [Self Performselectoronmainthread: @selector (clearcachesuccess) Withobject:nil wait Untildone:yes];});} -(void) clearcachesuccess{
[Mbprogresshud showsuccess:@ "clean up"];
NSLog (@ "clean success");}
The IOS cleanup cache feature implements the first method of