I want to use a navigation bar, and I realize that it has title
and prompt
.
What is the difference between them?
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.
The items that a navigation bar displays when the associated view controller is visible.
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.
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"
Here Basic is the title.
Sentence in the top portion is the prompt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With