This file contains 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
// Gets a random UIColor. | |
- (UIColor *)randomColor | |
{ | |
CGFloat hue = (arc4random() % 256 / 256.0f); | |
CGFloat saturation = (arc4random() % 128 / 256.0f) + 0.5f; | |
CGFloat brightness = (arc4random() % 128 / 256.0f) + 0.5f; | |
UIColor *color = [UIColor colorWithHue:hue saturation:saturation brightness:brightness alpha:1.0f]; | |
return color; | |
} |
This file contains 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
\u00e0 -> à | |
\u00e1 -> á | |
\u00c0 -> À | |
\u00c1 -> Á | |
\u00e8 -> è | |
\u00e9 -> é | |
\u00c8 -> È | |
\u00c9 -> É |
This file contains 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
import UIKit | |
import CoreData | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { | |
return true |
This file contains 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
import SpriteKit | |
class CircleNode: SKShapeNode { | |
var radius: CGFloat { | |
didSet { | |
self.path = CircleNode.path(self.radius) | |
} | |
} | |
This file contains 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
class AppManager { | |
static let sharedInstance = AppManager() | |
private init () { | |
} | |
} |