user1492784
user1492784

Reputation:

Default back button background image of UIBarButtonItem appears over my custom

In the AppDelegate I'm setting custom back button background image with UIAppearence.

[[UIBarButtonItem appearance] setBackButtonBackgroundImage:image forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
[[UIBarButtonItem appearance] setBackButtonBackgroundImage:highlightedImage forState:UIControlStateHighlighted barMetrics:UIBarMetricsDefault];

In some cases after pushing view controller appears default back button background image over my custom.

Upvotes: 0

Views: 148

Answers (1)

user1492784
user1492784

Reputation:

It helped me to hide default image.

[[UINavigationBar appearance] setTintColor:[UIColor clearColor]];

Upvotes: 1

Related Questions