iOS 导航栏返回按钮重写
2020-06-11 本文已影响0人
iOS门三闫
导航栏返回按钮重写
UIBarButtonItem *backBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[[UIImage imageNamed:@"返回"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] style:UIBarButtonItemStylePlain target:selfaction:@selector(backAction)];
self.navigationItem.leftBarButtonItem = backBarButtonItem;