Domanda

How do you get the UIBarButtonItem that pops out the main menu (when in portrait mode) of the DetailViewController when dealing with a master/detail split view controller? I want to change the title of that button and enable/disable it based on certain actions.

I tried:

self.navigationController.navigationBar.items...

But it doesn't get it for me.

È stato utile?

Soluzione

Try: self.navigationItem.leftBarButtonItem

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top