Skip to content

Instantly share code, notes, and snippets.

View ankahathara's full-sized avatar
:octocat:
I may be slow to respond.

Ankahathara ankahathara

:octocat:
I may be slow to respond.
  • Riverview Lab
  • New York, NY
View GitHub Profile
import UIKit
import StreamingKit
private let singletonInstance = NineInchAudio()
class NineInchAudio {
class var manager: NineInchAudio {
return singletonInstance
}
// Playground - noun: a place where people can play
import Foundation
var greetings = "Hello"
greetings = greetings + "World"
greetings.append(Character("!"))
println(greetings)
@ankahathara
ankahathara / Ankahathara
Last active August 29, 2015 14:13
Commonly Used Objective C Snippets
//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];