lib/ProMotion/cocoatouch/SplitViewController.rb in ProMotion-0.6.2 vs lib/ProMotion/cocoatouch/SplitViewController.rb in ProMotion-0.6.3
- old
+ new
@@ -6,19 +6,17 @@
def detail_screen
s = self.viewControllers.last
s.respond_to?(:visibleViewController) ? s.visibleViewController : s
end
def master_screen=(s)
- self.viewControllers = [s.main_controller, self.viewControllers.last]
+ self.viewControllers = [s.pm_main_controller, 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
-
- vc = s.respond_to?(:main_controller) ? s.main_controller : s
- self.viewControllers = [self.viewControllers.first, vc]
+ self.viewControllers = [self.viewControllers.first, s.pm_main_controller]
end
def screens=(s_array)
self.viewControllers = s_array
end
end
\ No newline at end of file