user3491799
user3491799

Reputation: 322

Back Button On UINavagationController Missing The Arrow?

I have a leftBarButtonItem and I am going to set it hidden in program, but I found the back button will be missing the arrow <

self.navigationItem.leftBarButtonItem.image = nil;

Upvotes: 1

Views: 424

Answers (1)

Rich
Rich

Reputation: 8202

If you are not using the leftBarButtonItem, set it to nil:

self.navigationItem.leftBarButtonItem = nil;

Just setting the image to nil will not work as the UIBarButtonItem would still be present.

Upvotes: 1

Related Questions