简体   繁体   English

如何在导航栏的后退按钮上放置视图?

[英]How to put a view on the back button of navigation bar?

How to put a view on the back button of navigation bar?如何在导航栏的后退按钮上放置视图?

Not on title view, but on the back button.不是在标题视图上,而是在后退按钮上。 It seems like to me that the back button is a UIBarButtonItem, which doesn't inherite UIView.在我看来,后退按钮是一个 UIBarButtonItem,它不继承 UIView。

You can do it programmatically using initWithCustomView .您可以使用initWithCustomView 以编程方式执行此操作。

AtomicElementViewController.m has a good example of this. AtomicElementViewController.m有一个很好的例子。

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

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