I want to delete an image from my app document directory. Code I have written to delete image is:
-(void)removeImage:(NSString *)fileName { fileManag
Instead of having the error set to NULL, have it set to
NSError *error; [fileManager removeItemAtPath:filePath error:&error]; if (error){ NSLog(@"%@", error); }
this will tell you if it's actually deleting the file