lib/ProMotion/cocoatouch/split_view_controller.rb in ProMotion-1.1.2 vs lib/ProMotion/cocoatouch/split_view_controller.rb in ProMotion-1.2.0

- old
+ new

@@ -2,27 +2,27 @@ class SplitViewController < UISplitViewController def master_screen s = self.viewControllers.first s.respond_to?(:visibleViewController) ? s.visibleViewController : s end - + def detail_screen s = self.viewControllers.last s.respond_to?(:visibleViewController) ? s.visibleViewController : s end - + def master_screen=(s) self.viewControllers = [ (s.navigationController || s), self.viewControllers.last] end - + def detail_screen=(s) # set the button from the old detail screen to the new one button = detail_screen.navigationItem.leftBarButtonItem s.navigationItem.leftBarButtonItem = button self.viewControllers = [self.viewControllers.first, (s.navigationController || s)] end - + def screens=(s_array) self.viewControllers = s_array end end end