jamonholmgren / ProMotion

ProMotion is a RubyMotion gem that makes iPhone development less like Objective-C and more like Ruby.
MIT License
1.26k stars 148 forks source link

use custom class for open_tab_bar #794

Open augustosamame opened 8 years ago

augustosamame commented 8 years ago

Hi. I would like to use more powerful Tab Bars by using a pod like RAMAnimatedTabBarController: https://github.com/Ramotion/animated-tab-bar

Their documentation indicates:

Set the class of the UITabBarController to RAMAnimatedTabBarController in your Storyboard or nib. For each UITabBarItem, set the class to RAMAnimatedTabBarItem.

How would I be able to specify a custom class when using open_tab_bar in PM?

jamonholmgren commented 8 years ago

@augustosamame There currently isn't a way to do that, but by looking at the source you should be able to approximate it.

https://github.com/infinitered/ProMotion/blob/f872ac89eba823e9e7641a300fe29c6cb2d08204/lib/ProMotion/tabs/tabs.rb#L5-L13