(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| /** | |
| Provides the ability to verify key paths at compile time. | |
| If "keyPath" does not exist, a compile-time error will be generated. | |
| Example: | |
| // Verifies "isFinished" exists on "operation". | |
| NSString *key = SQKeyPath(operation, isFinished); | |
| // Verifies "isFinished" exists on self. |
| dispatch_queue_t queue = dispatch_queue_create("PlusFlickrPhotoView Queue", DISPATCH_QUEUE_CONCURRENT); | |
| dispatch_async(queue, ^{ | |
| // force decompress of image | |
| UIGraphicsBeginImageContext(CGSizeMake(1, 1)); | |
| [image drawAtPoint:CGPointZero]; | |
| UIGraphicsEndImageContext(); | |
| // set the image on main thread | |
| dispatch_sync(dispatch_get_main_queue(), ^{ |