我在基本 ViewController viewDidLoad 中设置了 backbarbutton,如下所示:
if (@available(iOS 11, *)) {
UIImage *backButtonImage = [[UIImage imageNamed:@"icon_return"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
self.navigationController.navigationBar.backIndicatorImage = backButtonImage;
self.navigationController.navigationBar.backIndicatorTransitionMaskImage = backButtonImage;
self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:nil action:nil];
}
谁能给我一些提示,我花了一整天的时间来解决这个问题,但无法得到任何想法。