When I open a view with presentModalViewController, a back button that I created while the transition is playing after it finishes play ( aka. view is presented), then it turns to the color I expect, is based on tint color that I set to navigationBar.
How can I get rid of that blue button, making it to look how it is once the animation stops playing?
I added the button on the viewDidLoad and also with IB. Same result. The tint color I set using a category as follows:
@implementation UINavigationBar (UINavigationBar_Custom)
- (void)drawRect:(CGRect)rect {
self.tintColor = [UIColor colorWithHue:0.019 saturation:0.990 brightness:0.4850 alpha:1.000];
}
Sounds like you’re setting the tint color in viewDidAppear: – try setting the it in viewWillAppear:, and always calls the superclass’s implementation!
Also, you should rather add a cancel/done button to a modal view controller.