(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.
| #if DEBUG | |
| #import <MediaPlayer/MediaPlayer.h> | |
| #endif | |
| - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
| #if DEBUG | |
| // Debug code that lets us simulate memory warnings by pressing the device's volume buttons. |
| - (UIImage *) imageByTrimmingTransparentPixels { | |
| int rows = self.size.height; | |
| int cols = self.size.width; | |
| int bytesPerRow = cols*sizeof(uint8_t); | |
| if ( rows < 2 || cols < 2 ) { | |
| return self; | |
| } | |
| //allocate array to hold alpha channel |