Created
March 7, 2014 15:30
-
-
Save jlcampana/9413575 to your computer and use it in GitHub Desktop.
Borrar un fichero
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@property (SDDispatchQueueSetterSementics, nonatomic) dispatch_queue_t ioQueue; | |
//... | |
_ioQueue = dispatch_queue_create("com.currycat.files", DISPATCH_QUEUE_SERIAL); | |
//... | |
if (path) { | |
dispatch_async(self.ioQueue, ^{ | |
[[NSFileManager defaultManager] removeItemAtPath:path error:nil]; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment