UIPopOver 标题和副标题

发布于 2024-11-15 20:55:32 字数 248 浏览 4 评论 0原文

如何设置 popOverView 的副标题?

描述 : 这是我得到的:我能够设置标题。 在此处输入图像描述

这是我想要的:我想要 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.
enter image description here

Here is what I want :I want the title and a subtitle on my popOverView.
enter image description here

How can I do that ?

Regards !!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

没有心的人 2024-11-22 20:55:32

使用 IB 或以编程方式创建一个带有两个 UILabelUIView,并将其设置为 navigationItemtitleView 。在弹出窗口中显示的 UIViewController 中:

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.navigationItem.titleView = myTitleView;
}

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;
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文