lib/ProMotion/screen_helpers/split_screen.rb in ProMotion-0.6.1 vs lib/ProMotion/screen_helpers/split_screen.rb in ProMotion-0.6.2
- old
+ new
@@ -17,11 +17,15 @@
master = master.new if master.respond_to?(:new)
detail = detail.new if detail.respond_to?(:new)
[ master, detail ].map { |s| s.on_load if s.respond_to?(:on_load) }
- split_screen_controller master, detail
+ split = split_screen_controller master, detail
+ if args.has_key?(:icon) or args.has_key?(:title)
+ split.tabBarItem = create_tab_bar_item(args)
+ end
+ split
end
def open_split_screen(master, detail, args={})
split = create_split_screen(master, detail, args)
open split, args
@@ -37,6 +41,6 @@
def splitViewController(svc, willShowViewController: vc, invalidatingBarButtonItem: barButtonItem)
svc.detail_screen.navigationItem.leftBarButtonItem = nil
end
end
-end
\ No newline at end of file
+end