ビューコントローラーに UIImage と「戻る」ボタンの両方が表示されていますが、その理由がわかりません。
ここにスクリーンショットがあります:
ここに私のコードがあります:
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self.navigationController setNavigationBarHidden:NO animated:YES];
UIImage *image = [UIImage imageNamed:@"arrow_back.png"];
UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
[self.navigationController.navigationBar addSubview:imageView];
}
助けてくれてありがとう。