Just got the answer! All you have to do is create a strong IBOutlet
, then you can do the following:
// viewDidLoad
self.navigationItem.rightBarButtonItem = nil
// Later on...
self.navigationItem.rightBarButtonItem = self.deleteBarButton
Just got the answer! All you have to do is create a strong IBOutlet
, then you can do the following:
// viewDidLoad
self.navigationItem.rightBarButtonItem = nil
// Later on...
self.navigationItem.rightBarButtonItem = self.deleteBarButton