Ios – Xcode Storyboard issue – Button Bar Button only appears at the bottom of a TableViewController

iosstoryboardxcode

Not sure if this is a bug in Xcode 6(I use Beta 4) or expected behaviour.

When I have a View Controller in a Navigation Controller and 'push' (deprecated segue) a Table View Controller(TVC) I can drag a Bar Button Item to the Navigation Bar in the TVC.

enter image description here

When I do the same but 'show' (new adaptive segue) the TVC, the Bar Button Item drops to the bottom, and in fact doesn't show up when I build the project.

enter image description here

A hack to resolve this problem is to set it up as 'Push' to begin with, drag on the Bar Button Item, and then change the segue to 'Show'. But – is this necessary? Is this an Xcode Bug or am I missing something?

Best Answer


I have tried creating the issue you are facing with bar button at bottom. It’s not an issue or Xcode bug.
But in new Xcode when you use segue to ’Show (e.g. Push)’ then in next view you won’t get navigation bar.
enter image description here You need to add navigation bar and then add bar button item to navigation bar. enter image description here enter image description here Hope your problem will be solved.