swift中,需要添加页面底部的工具栏
搜:
swift view controller add toolbar
参考:
ios – How to add a toolbar to the bottom of a UITableViewController in Storyboards? – Stack Overflow
print("self.navigationController=\(self.navigationController)") //self.navigationController=Optional(<UINavigationController: 0x7fc044167800>) self.navigationController?.setToolbarHidden(false, animated: true)
效果:
转载请注明:在路上 » [已解决]swift添加页面底部的工具栏