How to add a Toolbar to UITableViewController

非 Y 不嫁゛ 提交于 2019-12-24 14:27:20

问题


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?


回答1:


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"



来源:https://stackoverflow.com/questions/15136123/how-to-add-a-toolbar-to-uitableviewcontroller

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!