Skip to content

Instantly share code, notes, and snippets.

@eyeezzi
Last active September 20, 2016 21:53
Show Gist options
  • Save eyeezzi/15c98045d41464d199a4d866589236c5 to your computer and use it in GitHub Desktop.
Save eyeezzi/15c98045d41464d199a4d866589236c5 to your computer and use it in GitHub Desktop.
// how to set status bar style for a view controller (not embedded in navController
override func preferredStatusBarStyle() -> UIStatusBarStyle {
// also set "view controller-based status bar style" to YES in Info.plist
return UIStatusBarStyle.LightContent
}
// setting apperance proxy for a UIControl
UISwitch.appearanceWhenContainedInInstancesOfClasses([CustomTableViewController.self]).thumbTintColor = UIColor.brownColor()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment