¡@

Home 

2014/10/15 ¤U¤È 10:04:38

iphone Programming Glossary: blockself

Image URL saving

http://stackoverflow.com/questions/12670025/image-url-saving

the retaining of the image checkmark part void loadAssets count 0 self.assets removeAllObjects AGIPCAssetsController blockSelf self dispatch_async dispatch_get_global_queue DISPATCH_QUEUE_PRIORITY_LOW 0 ^ Where I make an array to put the `ALAsset.. 0 ^ Where I make an array to put the `ALAsset Url` selectedPhotos NSMutableArray alloc initWithArray blockSelf.imagePickerController.selection @autoreleasepool blockSelf.assetsGroup enumerateAssetsUsingBlock ^ ALAsset result NSUInteger.. Url` selectedPhotos NSMutableArray alloc initWithArray blockSelf.imagePickerController.selection @autoreleasepool blockSelf.assetsGroup enumerateAssetsUsingBlock ^ ALAsset result NSUInteger index BOOL stop ALAssetRepresentation representation..

Grand Central Dispatch (GCD) with CoreData

http://stackoverflow.com/questions/4264540/grand-central-dispatch-gcd-with-coredata

dispatch_queue_t request_queue dispatch_queue_create com.app.request NULL __block __typeof__ self blockSelf self dispatch_async request_queue ^ MyNSManagedObject mObject blockSelf.fetchedResultsController objectAtIndexPath NSIndexPath.. com.app.request NULL __block __typeof__ self blockSelf self dispatch_async request_queue ^ MyNSManagedObject mObject blockSelf.fetchedResultsController objectAtIndexPath NSIndexPath indexPathForRow 0 inSection 0 update and heavy lifting... dispatch_sync.. objectAtIndexPath NSIndexPath indexPathForRow 0 inSection 0 update and heavy lifting... dispatch_sync main_queue ^ blockSelf saveManagedObjectContext The use of blockSelf is to avoid creating accidentally reference cycles. Practical blocks share..