lib/ProMotion/screen_helpers/screen_tabs.rb in ProMotion-0.6.2 vs lib/ProMotion/screen_helpers/screen_tabs.rb in ProMotion-0.6.3
- old
+ new
@@ -14,11 +14,10 @@
s.tabBarItem.tag = tag_index
s.parent_screen = self if self.is_a?(UIViewController) && s.respond_to?("parent_screen=")
s.tab_bar = tab_bar_controller if s.respond_to?("tab_bar=")
- vc = s.respond_to?(:main_controller) ? s.main_controller : s
- view_controllers << vc
+ view_controllers << s.pm_main_controller
tag_index += 1
s.on_load if s.respond_to?(:on_load)
end