lib/ProMotion/screen/screen_navigation.rb in ProMotion-1.1.0.rc1 vs lib/ProMotion/screen/screen_navigation.rb in ProMotion-1.1.0
- old
+ new
@@ -110,10 +110,10 @@
end
def ensure_wrapper_controller_in_place(screen, args={})
unless args[:close_all] || args[:modal] || args[:in_detail] || args[:in_master]
- screen.navigationController ||= self.navigationController
+ screen.navigationController ||= self.navigationController if screen.respond_to?("navigationController=")
screen.tab_bar ||= self.tab_bar if screen.respond_to?("tab_bar=")
end
end
def present_modal_view_controller(screen, animated)