对于模态对话,我希望有一个UINavigationBar,其中包含一个较小的任务描述,然后是传统的UINavigationBar - 这是iOS上许多系统应用程序中看到的样式。
实现这一目标的最佳方法是什么?
要查看我的意思,请参阅地图和联系人的这些示例屏幕截图(我选择iOS6屏幕截图,因为标准渐变扩展也是我想要的)。
For a modal dialogue, i would like to have a UINavigationBar with a smaller description of the task, followed by a traditional UINavigationBar - this is the style seen in many of the system apps on iOS.
What is the best way to achieve this?
To see what I mean, see these example screenshots from Maps and Contacts (I choose the iOS6 screenshots, because having the standard gradient expand is also something which I would like to have).
最满意答案
您发布的屏幕截图使用的是UINavigationItem prompt属性。
在视图控制器中,您可以执行以下操作:
- (void)viewDidLoad { [super viewDidLoad]; self.navigationItem.prompt = @"Some message to appear at the top"; self.title = @"Some Title"; }The screen shots you posted are using the UINavigationItem prompt property.
In your view controller you can do this:
- (void)viewDidLoad { [super viewDidLoad]; self.navigationItem.prompt = @"Some message to appear at the top"; self.title = @"Some Title"; }更多推荐
发布评论