UIPopOver Title and Sub-Title

强颜欢笑 提交于 2019-12-05 07:15:19

问题


How can I set a sub-title of my popOverView ?

Description : Here is what I am getting : I am able to set the title.

Here is what I want :I want the title and a subtitle on my popOverView.

How can I do that ?

Regards !!


回答1:


Create a UIView with two UILabels, 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;
}


来源:https://stackoverflow.com/questions/6371508/uipopover-title-and-sub-title

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!