mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-06-04 19:45:35 +08:00
Merge pull request #52 from rheoli/version-0.6-split
Reuse the split screen button on the new detail screen.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user