How to never block the interface with NSOperation
priore Mar 13th, 2014 506 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- self.queue = [NSOperationQueue new];
- NSInvocationOperation *operation = [[NSInvocationOperation alloc] initWithTarget:self selector:@selector(loadData) object:nil];
- [self.queue addOperation:operation];
RAW Paste Data