本人在A页面的viewDidLoad这样写:
UIBarButtonItem *backBarItem = [[UIBarButtonItem alloc] initWithTitle:@”返回” style:UIBarButtonItemStylePlain target:self action:@selector(leftClick)];
self.navigationItem.backBarButtonItem = backBarItem;
为什么backBarButtonItem不显示呢?
UIBarButtonItem *backBarItem = [[UIBarButtonItem alloc] initWithTitle:@”返回” style:UIBarButtonItemStylePlain target:self action:@selector(leftClick)];
self.navigationItem.backBarButtonItem = backBarItem;
为什么backBarButtonItem不显示呢?
解决方案
40
self.navigationItem.leftBarButtonItem = backBarItem;
试试
试试