我有一个UIViewController,我将它嵌入到UINavigationController中。我想在工具栏中显示一个项目(对于工具栏,我的意思是this:这是我在viewDidLoad方法中的代码self.navigationController?.toolbarHidden=falseself.navigationController?.toolbar.items?.append(UIBarButtonItem(title:"BuyPotato",style:.Plain,target:self,action:#selector(ViewController.buyPotat