我将视图控制器推到导航控制器上,如下所示:
[self.navigationController pushViewController:anotherViewController animated:YES];
Run Code Online (Sandbox Code Playgroud)
然后,在anotherViewController中我检查self.navigationItem.BackBarButtonItem和LeftBarButtonItem,但它们总是为零.
我可以看到backBarButtonItem,它似乎工作正常.