I'm guessing you don't actually have a navigation controller in place. You're picking one up for free from the More tab because it already has one. Outside of the more tab, you need to add your own, otherwise this code doesn't do anything.
And if you use this exact code, you will leak your view controller.
|