21

我确定我在这里遗漏了一些明显的东西,但我知道弹出框控件可以有“标题”,即在内容视图上方有一行文本的标题区域(例如 iWork 中的“工具”弹出框)。

如何在我自己的弹出窗口中添加它?

谢谢。

4

2 回答 2

38
于 2010-04-11T21:07:34.740 回答
8

I have been beating my head against the wall all day with the same problem and I think I finally have the solution :D You need to use a UINavigationController for the popover's contentViewController, and then add a title to the navigations controller's navigation bar, like you normally would. Oddly, this doesn't work if you add a navigation bar to your existing view controller.

于 2010-04-11T22:30:51.217 回答