Reputation: 943
Is there an easy way of putting a 'floating' button above a UIScrollView in Storyboard? I would like to add a lock button to toggle scrolling on and off. I guess I could do this in code but it would be nice if it could also be done via XCode.
Upvotes: 1
Views: 1665
Reputation: 78363
Just drag the button onto the view somewhere over your UIScrollView
. Now, IB will automatically dump it in the scroll view, but you can move it out by using the object browser.
UIScrollView
You may have to use the inspector to set the button's actual location rather than dragging it around. Dragging it around for placement will most likely cause it to jump back into the scroll view.
Upvotes: 2