我无法更改导航栏返回按钮的颜色,可以帮忙吗?我已经自定义了UINavigationBar类,但是无法更改返回按钮的颜色。
UINavigationBar类代码
#import #import "UINavigationBar.h"
@interface UINavigationBar ( Category ) {
}
.m文件代码
- (void) drawRect:(CGRect)rect {
[[UIImage imageNamed:@"top.png"] drawInRect:rect]; self.tintColor = [UIColor colorWithRed:38 green:65 blue:82 alpha:1]; }
我无法更改返回按钮的颜色。