public class UINavigationItem extends NSObject
Constructor and Description |
---|
UINavigationItem(String title)
Constructs a UINavigationItem with the specified title.
|
Modifier and Type | Method and Description |
---|---|
UIBarButtonItem |
backBarButtonItem()
Returns the back bar button item.
|
boolean |
hidesBackButton()
Returns a Boolean that shows if the back button is hidden or not.
|
UIBarButtonItem |
leftBarButtonItem()
Returns the item that is placed at the left side of the navigation bar.
|
String |
prompt()
Returns the text that is placed at the top of the navigation bar.
|
UIBarButtonItem |
rightBarButtonItem()
Returns the item that is placed at the right side of the navigation bar.
|
void |
setBackBarButtonItem(UIBarButtonItem backBarButtonItem)
Sets a back button item when it is needed.
|
void |
setHidesBackButton(boolean hidesBackButton)
Sets the back button hidden or not.
|
void |
setHidesBackButton(boolean hidesBackButton,
boolean animated)
Sets the back button hidden or not with animated way or not.
|
void |
setLeftBarButtonItem(UIBarButtonItem leftBarButtonItem)
Sets a navigation item at the left side of the navigation bar.
|
void |
setLeftBarButtonItem(UIBarButtonItem leftBarButtonItem,
boolean animated)
Sets a navigation item at the left side of the navigation bar with
animated way or not.
|
void |
setPrompt(String prompt)
Sets a text at the top of the navigation bar.
|
void |
setRightBarButtonItem(UIBarButtonItem rightBarButtonItem)
Sets a navigation item at the right side of the navigation bar.
|
void |
setRightBarButtonItem(UIBarButtonItem rightBarButtonItem,
boolean animated)
Sets a navigation item at the right side of the navigation bar with
animated way or not.
|
void |
setTitle(String title)
Sets the title of this navigation item in the middle of the navigation
bar.
|
void |
setTitleView(UIView titleView)
Sets the specified view in the middle of the navigation bar when this
item is the top item of the stack.
|
String |
title()
Returns the title of this navigation item in the middle of the navigation
bar.
|
UIView |
titleView()
Returns the view that is placed in the middle of the navigation bar when
the item the top of the stack.
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public UINavigationItem(String title)
title
- The title of the new UINavigationItem.public UIBarButtonItem backBarButtonItem()
public void setBackBarButtonItem(UIBarButtonItem backBarButtonItem)
backBarButtonItem
- The back bar button item.public boolean hidesBackButton()
public void setHidesBackButton(boolean hidesBackButton)
hidesBackButton
- Boolean that defines whether the back button will
be hidden or not.public void setHidesBackButton(boolean hidesBackButton, boolean animated)
hidesBackButton
- Boolean that defines whether the back button will
be hidden or not.animated
- Boolean that defines whether the change will be animated
or notpublic UIBarButtonItem leftBarButtonItem()
public void setLeftBarButtonItem(UIBarButtonItem leftBarButtonItem)
leftBarButtonItem
- The navigation item that will placed at the left
side of the bar.public void setLeftBarButtonItem(UIBarButtonItem leftBarButtonItem, boolean animated)
leftBarButtonItem
- The navigation item that will placed at the left
side of the bar.animated
- Boolean that defines whether the change will be animated
or not.public UIBarButtonItem rightBarButtonItem()
public void setRightBarButtonItem(UIBarButtonItem rightBarButtonItem)
rightBarButtonItem
- The navigation item that will placed at the
right side of the bar.public void setRightBarButtonItem(UIBarButtonItem rightBarButtonItem, boolean animated)
rightBarButtonItem
- The navigation item that will placed at the
right side of the bar.animated
- Boolean that defines whether the change will be animated
or not.public String prompt()
public void setPrompt(String prompt)
prompt
- THe text that will be placed at the top of the navigation
bar.public String title()
public void setTitle(String title)
title
- The title of the navigation item.public UIView titleView()
public void setTitleView(UIView titleView)
titleView
- The view that will placed in the middle of the
navigation bar.Copyright © 2020. All rights reserved.