1

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?)
Sohil R. Memon
  • 9,404
  • 1
  • 31
  • 57
user2179936
  • 455
  • 2
  • 7
  • 16

1 Answers1

3

You can remove the UIBarButtonItem. It's just one type of deallocating the item:

self.navigationItem.rightBarButtonItem = nil

self.navigationItem.leftBarButtonItem = nil
Sohil R. Memon
  • 9,404
  • 1
  • 31
  • 57