1

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).

Maps choose bookmark

Contacts add favourites screen

4

1 回答 1

4

您发布的屏幕截图正在使用该UINavigationItem prompt属性。

在您的视图控制器中,您可以这样做:

- (void)viewDidLoad {
    [super viewDidLoad];

    self.navigationItem.prompt = @"Some message to appear at the top";
    self.title = @"Some Title";
}
于 2013-10-17T03:27:04.213 回答