Reputation: 1476
I have a normal UIViewController with a Navigation Bar on top that scrolls with the rest of the view when I scroll down. Now I want to add another toolbar that does the exact same but sticks to the bottom. Ultimately I want the view to scroll down (I have a lot of content), with a Navigation bar at the top and a Toolbar at the bottom that follow the rest of the view.
I have my toolbar ready with all the items but I don't know how to stick it to the bottom. Any help?
Thank you very much
Upvotes: 0
Views: 525
Reputation: 124997
I have my toolbar ready with all the items but I don't know how to stick it to the bottom.
Just make sure that the toolbar isn't inside the scroll view. Only the views that are part of the scroll view's content will scroll, and those views that are not part of the scroll view's content will not scroll -- they'll "stick" to their respective positions in the window.
Upvotes: 1