christianroman / CRGradientNavigationBar

Custom UINavigationBar subclass which allows gradient coloured navigation bar on iOS 7.
MIT License
916 stars 116 forks source link

Storyboards? #8

Open Steven4294 opened 10 years ago

Steven4294 commented 10 years ago

I'm using storyboards so I don't use the App Delegate class to initialize my views. How would I implement the CRGradientNavBar then? Is it not possible?

[[UINavigationBar appearance] setTintColor:[~gradient~]]
tschleuss commented 10 years ago

Go to your storyboard. Select your Navigation Controller Scene. Beneath your Navigation Controller, there is the Navigation Bar item. Select it. In the Utilities Panel (on the right), select the Identity Inspector (3rd tab). Set your subclass of UINavigationBar as the CRGradientNavigationBar.