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;

上一篇 下一篇

猜你喜欢

热点阅读