Reputation: 455
I've tried hiding the thing, but it just appears greyed out in UINavigationController
I found a delete method, but it asks to pass in Anyobject..
Button.delete(AnyObject?)
Upvotes: 1
Views: 292
Reputation: 9540
You can remove the UIBarButtonItem
. It's just one type of deallocating the item:
self.navigationItem.rightBarButtonItem = nil
self.navigationItem.leftBarButtonItem = nil
Upvotes: 3