[英]How to Add a Bar Button Item on a Disappeared Navigation Bar using Storyboard?
[英]Can't add bar button item to navigationBar in detail viewController using Storyboard?
我在Main viewController中的navigationBar中添加了一個項目,它運作良好。 當我向ViewBar的詳細導航欄添加一個項目時,我將該項目拖到ViewController,但是它不起作用,我只能將其添加到ViewController的頂部或底部。 當我運行該應用程序時,屏幕上沒有任何項目。
如何通過Storyboard在詳細ViewController的NavigationBar中添加項目?
您需要為DetailsViewController添加NavigationItem,然后選擇Bar Button Item,並將其拖動到剛添加的NavigationItem中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.