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 | |
import StreamingKit | |
private let singletonInstance = NineInchAudio() | |
class NineInchAudio { | |
class var manager: NineInchAudio { | |
return singletonInstance | |
} |
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
// Playground - noun: a place where people can play | |
import Foundation | |
var greetings = "Hello" | |
greetings = greetings + "World" | |
greetings.append(Character("!")) | |
println(greetings) |
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
//This is the way to create an empty project and set the navigation view controller and the root view controller | |
UINavigationController *navigationVC = [[UINavigationController alloc] initWithRootViewController:[[HomeViewController alloc]initWithNibName:@"HomeViewController" bundle:nil]]; | |
navigationVC.navigationBar.hidden = YES; | |
self.window.rootViewController = navigationVC; | |
//How to change the placehoalder text color in objective c | |
[self.emailTF setValue:[UIColor whiteColor] forKeyPath:@"_placeholderLabel.textColor"]; | |
//This will create a destination view controller type object and set the current navigation to it | |
ForgotViewController *forgotPasswordVC = [[ForgotViewController alloc] initWithNibName:@"ForgotViewController" bundle:nil]; |