我在导航栏上显示图像,但标题消失了,为什么?
如何解决?
- (void)viewDidLoad { [super viewDidLoad];
UIImage *image = [UIImage imageNamed:@"navbar.png"];
UIImageView *imageView = [[UIImageView alloc]initWithImage:image];
self.navigationItem.titleView=imageView;
[imageView release];
// self.title = @"Bio";
self.navigationItem.title = @"Bio";
}
非常感谢!