Why can't I drag the UIBarButtonItem onto the navigation bar?

I have a problem. When I place UIBarButtonItem

on the controller of the tab bar, it works fine, it displays as it should: diagram

However, I am unable to put on the button where the black square is. Does anyone know how I can do this non-programmatically?

+3


source to share


2 answers


You should probably add Navigation Item

by dragging it from the Object Library to the spot where you marked in black and then try adding an item with a bar on the right. It should work



+3


source


UINavigationBar only wants UIBarButtonItem. You can create it with a special kind programmatically. Show here: fooobar.com/questions/351005 / ...



0


source







All Articles