[英]Reused xib with storyboard (add UIView to UINavigationcontroller)
I have one xib contain some controllers. 我有一个xib包含一些控制器。 how to add
UIView
to UINavigationcontroller
programmatically. 如何以编程方式将
UIView
添加到UINavigationcontroller
。
can you please help. 你能帮忙吗?
Thanks 谢谢
You just have to drag and drop UIView
in your IB and outlet it and set 您只需要将
UIView
拖放到IB中并将其出口并设置即可
self.navigationItem.titleView = youroutletview;
Now you can customize view as you want. 现在,您可以根据需要自定义视图。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.