diff --git a/lib/ProMotion/cocoatouch/SplitViewController.rb b/lib/ProMotion/cocoatouch/SplitViewController.rb index 5983ddf..664984a 100644 --- a/lib/ProMotion/cocoatouch/SplitViewController.rb +++ b/lib/ProMotion/cocoatouch/SplitViewController.rb @@ -11,6 +11,10 @@ class SplitViewController < UISplitViewController self.viewControllers = [s.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 + self.viewControllers = [self.viewControllers.first, s.main_controller] end def screens=(s_array)