Skip to content

Instantly share code, notes, and snippets.

@Omnipresent
Created April 24, 2014 16:28
Show Gist options
  • Save Omnipresent/11260696 to your computer and use it in GitHub Desktop.
Save Omnipresent/11260696 to your computer and use it in GitHub Desktop.
def application(application, didFinishLaunchingWithOptions:launchOptions)
@window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
initAFNetworkingClient
Colors.fetch(AFMotion::Client) do |data|
main_controller = ColorController.alloc.initWithData(data)
@window.rootViewController = UINavigationController.alloc.initWithRootViewController(main_controller)
@window.rootViewController.navigationBar.barTintColor = '#DF533B'.to_color
@window.rootViewController.navigationBar.translucent = true
@window.rootViewController.navigationBar.tintColor = UIColor.whiteColor
@window.rootViewController.navigationBar.setTitleTextAttributes({
UITextAttributeTextColor => UIColor.whiteColor
})
end
@window.makeKeyAndVisible
@window.tintColor = '#DF533B'.to_color
true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment