ios - Add a button on top (floating) of UISplitView - Swift -


my app contains 1 uisplitviewcontroller. want add floating button on top of window. not possible use storyboard drag button uitableviewcontroller of master view, because default, master view contains uitableview.

how can it?

enter image description here

you need create new view controller before split view controller. , in new controller add button on top , add container view fill rest of view.

storyboard

then create segue container view split view controller viewdidload/embed

enter image description here

that's all!

enter image description here


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -