简体   繁体   中英

Toolbar in a TableView (Swift)

I have a Toolbar at the bottom of my TableView in Storyboard within a ViewController. When I run the app, the toolbar only shows at the bottom of the table view. How can I make the toolbar fixed like the navigation bar? Do I need to have a tab bar controller?

navigationController?.setToolbarHidden(false, animated: true)

并使用情节提要自定义工具栏

..this question may be a duplicate of here and thisone . There you will find some insight. Nevertheless, if what you are trying to do is to keep that view on top of all the others, then you should go ahead and try solutions depicted here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM