CRNavigationController icon indicating copy to clipboard operation
CRNavigationController copied to clipboard

UITabBar subclass

Open timothycosta opened this issue 11 years ago • 4 comments

I just expanded on what you did and added support for the tab bar as well. Thanks for your useful library!

timothycosta avatar Oct 07 '13 16:10 timothycosta

I'm sorry if I leave this in the wrong thread, but how can I add the CRNavigationController when using Storyboard?

dukuo avatar Oct 07 '13 22:10 dukuo

Change the class of the UINavigationController to CRNavigationController, in the Storyboard.

shaymargolis avatar Oct 08 '13 12:10 shaymargolis

Change the class of the UINavigationController to CRNavigationController, in the Storyboard.

It's not working because from storyboard it's use - (id)initWithCoder:(NSCoder *)aDecoder method.

Any other solution?

vstepanyuk avatar Oct 08 '13 16:10 vstepanyuk

Change the class of the UINavigationController to CRNavigationController, in the Storyboard. It's not working because from storyboard it's use - (id)initWithCoder:(NSCoder *)aDecoder method.

Any other solution?

What worked for me was to change both the navigation controller's class to CRNavigationController and change the navigation controller's navigation bar's class to CRNavigationBar. I did not have to implement a custom initWithCoder for it to work with storyboards this way.

Ziewvater avatar Oct 08 '13 22:10 Ziewvater