UINavigationBar - Setting background image?
问题 So I have a category for UINavigationController and I override the init method as below - (id)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { UIImage *image = [UIImage imageNamed:@"navBar.png"]; [[UINavigationBar appearance] setBackgroundImage:image forBarMetrics:UIBarMetricsDefault]; } return self; } The following code causes the background image of the navigation bar to become blank (white). The image name is correct and it exists within the project. Any idea what is