简体   繁体   中英

How to add a Toolbar to UITableViewController

I need to add a Toolbar with a button in it at the bottom of my UITableView . I see lots of websites saying that using a UINavigationController is the way, but Is there any option that allows me to do this just within the UITableViewController ?

Yes, select your UITableViewController in your Storyboard and go to Editor-Embed in-Navigation Controller

Then select your newly-created NavigationController and in its Attributes Inspector check "Shows Toolbar"

在此处输入图片说明

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