[英]How to set the back arrow of the navigation bar?
If you are pushing view controller from VC1 to VC2 through navigation controller then write below line in VC2's viewWillAppear method. 如果要通过导航控制器将视图控制器从VC1推到VC2,则在VC2的viewWillAppear方法中的以下行中编写。
If you are using Swift 3.0 : 如果您使用的是Swift 3.0:
self.navigationController?.navigationBar.isHidden = false
self.navigationItem.setHidesBackButton(false, animated:true);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.