问题
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