Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UINavigationItem: Difference between title and prompt [closed]

I want to use a navigation bar, and I realize that it has title and prompt.

What is the difference between them?

like image 393
offset Avatar asked Jun 26 '13 08:06

offset


People also ask

Can you change the navigation bar on Iphone?

Change the Bar StyleA user changes the navigation bar's style, or UIBarStyle , by tapping the “Style” button to the left of the main page. This button opens an action sheet where users can change the background's appearance to default, black-opaque, or black- translucent.

What is a Uinavigationitem?

The items that a navigation bar displays when the associated view controller is visible.

What is the navigation bar on Iphone?

A navigation bar appears at the top of an app screen, enabling navigation through a hierarchy of content. A navigation bar also provides a natural place to display a screen's title — helping people orient themselves in your app or game — and it can include controls that affect the screen's content.


2 Answers

Although apple documentation does not provide enough information to understand the difference, you could have got answer by little search.

TitleView - Used to display main title of you controller.

Prompt - Used to provide some additional information to your user.

e.g. You can have title as "Grocery List" with Prompt as "Please select appropriate type"

like image 106
NightFury Avatar answered Oct 08 '22 02:10

NightFury


enter image description here

Here Basic is the title.

Sentence in the top portion is the prompt

like image 45
manujmv Avatar answered Oct 08 '22 04:10

manujmv