简体   繁体   English

如何将导航栏项目设置为“后退”按钮

[英]How To Set Navigation Bar Item to Back Button

I have a standard left back button navigation item in table view. 我在表格视图中有一个标准的左后退按钮导航项。

I animate in a view and in that view it sets the left item to nil for a clean look. 我在一个视图中设置动画,并在该视图中将左侧项目设置为零以保持外观整洁。 When I dismiss the animated view, i want the left item to go back to the back button that it was originally. 当我关闭动画视图时,我希望左边的项目返回到原来的后退按钮。

How can this be done? 如何才能做到这一点?

在将按钮设置为Nil之前,为什么不获取对该按钮的引用,然后在加载后将其分配回去?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM