UIPopOver标题和子标题 [英] UIPopOver Title and Sub-Title
本文介绍了UIPopOver标题和子标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何设置popOverView的子标题?
How can I set a sub-title of my popOverView ?
描述:
这是我得到的:我可以设置标题。
Description : Here is what I am getting : I am able to set the title.
此处是我想要的:我想要popOverView上的标题和副标题。
Here is what I want :I want the title and a subtitle on my popOverView.
如何我可以这样做吗?
问候!!
推荐答案
创建一个 UIView
带有两个 UILabel
s,无论是使用IB还是以编程方式将其设置为 titleView
的 navigationItem
。在弹出窗口中显示的 UIViewController
中:
Create a UIView
with two UILabel
s, either with IB or programmatically and set it to the titleView
of the navigationItem
. In the UIViewController
that you present in the popover:
- (void)viewDidLoad
{
[super viewDidLoad];
self.navigationItem.titleView = myTitleView;
}
这篇关于UIPopOver标题和子标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文