我在后面的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];
}
谁能给我一些提示,我花了整整一天时间来解决这个问题,但无法得到任何想法。