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
| // | |
| // LinkedTextView.h | |
| // | |
| // Created by Benjamin Bojko on 10/22/14. | |
| // | |
| // The MIT License (MIT) | |
| // | |
| // Copyright (c) 2014 Benjamin Bojko | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy |
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
| @implementation UIImage (ImageBlur) | |
| // This method is taken from Apple's UIImageEffects category provided in WWDC 2013 sample code | |
| - (UIImage *)applyBlurWithRadius:(CGFloat)blurRadius tintColor:(UIColor *)tintColor saturationDeltaFactor:(CGFloat)saturationDeltaFactor maskImage:(UIImage *)maskImage { | |
| // Check pre-conditions. | |
| if (self.size.width < 1 || self.size.height < 1) { | |
| NSLog(@"*** error: invalid size: (%.2f x %.2f). Both dimensions must be >= 1: %@", self.size.width, self.size.height, self); | |
| return nil; | |
| } | |
| if (!self.CGImage) { | |
| NSLog(@"*** error: image must be backed by a CGImage: %@", self); |
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
| // | |
| // SKNode+TouchPriority.h | |
| // ButtonLab | |
| // | |
| // Created by Fille Åström on 10/20/13. | |
| // Copyright (c) 2013 IMGNRY. All rights reserved. | |
| // | |
| #import <SpriteKit/SpriteKit.h> |
NewerOlder