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
| // | |
| // ToggleStatusBarViewController.swift | |
| // UIKitExamples | |
| // | |
| // Created by Renate Wünschl on 22.07.15. | |
| // Copyright (c) 2015 cocoanib. All rights reserved. | |
| // | |
| import UIKit |
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
| class Singelton { | |
| static let sharedInstance = Singelton() | |
| private init(){} | |
| } | |
| // Learned from this great blog post | |
| // http://krakendev.io/blog/the-right-way-to-write-a-singleton |
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
| // Code for ViewController | |
| import UIKit | |
| class UIViewController { | |
| @IBOutlet weak var segmentedControl: SegmentedControl! | |
| override func viewDidLoad() { | |
| super.viewDidLoad() |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>method</key> | |
| <string>ad-hoc</string> | |
| </dict> | |
| </plist> |
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
| extension UIColor { | |
| convenience init(hex: String, alpha: CGFloat = 1) { | |
| let scanner = NSScanner(string: hex) | |
| scanner.charactersToBeSkipped = NSCharacterSet(charactersInString: "#") | |
| var hexInt: UInt32 = 0 | |
| if scanner.scanHexInt(&hexInt) { | |
| if hex.characters.count < 6 { | |
| let red = CGFloat((hexInt & 0xF00) >> 8) / 15.0 |
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
| // Debug | |
| #ifdef DEBUG | |
| # define RMW_LOG(format, ...) NSLog((@"[Line %03d] %s " format), __LINE__, __PRETTY_FUNCTION__, ##__VA_ARGS__) | |
| #else | |
| # define RMW_LOG(...) | |
| #endif | |
| #define RMW_LOG_ERROR(format, ...) NSLog((@"[Line %03d] %s ERROR " format), __LINE__, __PRETTY_FUNCTION__, ##__VA_ARGS__) |
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
| import UIKit | |
| // MARK: Appearance | |
| extension AppDelegate { | |
| func styleAppAppearance() { | |
| // Define general style | |
| } |
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
| Attach this behaviour to a text-member | |
| -- ============================================== | |
| -- Textfieldcursor | |
| -- | |
| -- ============================================== | |
| global gTextFieldClipBoard |
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
| ⌘ Command | |
| ⌥ Option (Alt, Alternative) | |
| ⌃ Control | |
| ⇧ Shift | |
| ⇪ Capslock | |
| ↩ Return | |
| ␣ Space | |
| ⇥ Tab forward |
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
| Essential Xcode Shortcuts | |
| 🇺🇸 Keyboard | |
| ⌘ B Build | |
| ⌘ R Run | |
| ⌘ U Run Test | |
| ⇧ ⌘ K Clean | |
| ⌥ ⇧ ⌘ K Clean Build Folder | |
| ⇧ ⌘ O Open quickly |
OlderNewer