How to add buttons to navigation controller visible after segueing?

前端 未结 7 594
广开言路
广开言路 2020-12-04 14:40

I have set up a view controller in Storyboard which is embedded in a navigation controller. In this nav controller I have checked Shows Navigation Bar and Shows Toolbar and

7条回答
  •  失恋的感觉
    2020-12-04 14:57

    For XCode 6, the UINavigationItem for the 2nd view controller onwards is not added automatically on the View Controller Object inside the storyboard. You will have to drag the UINavigationItem onto the Navigation Bar for that view Controller Object before adding UIBarButtonItem on top of it.

    I am not sure why it is designed that way. I only discovered about this a few weeks ago.

    Xcode 6 UiNavigationItem

提交回复
热议问题