public abstract class UIBarItem extends NSObject
Modifier and Type | Method and Description |
---|---|
UIImage |
image()
Returns the image of this bar item.
|
UIEdgeInsets |
imageInsets()
Returns the image inset/outset of each edge.
|
boolean |
isEnabled()
Returns a Boolean that defines whether this bar item is enabled.
|
void |
setEnabled(boolean enabled)
Sets a Boolean that defines whether this bar item is enabled.
|
void |
setImage(UIImage image)
Sets the image for this bar item.
|
void |
setImageInsets(UIEdgeInsets imageInsets)
Sets the image inset/outset for each edge.
|
void |
setTag(int tag)
Sets the id for this bar item.
|
void |
setTitle(String title)
Sets the title for this bar item.
|
int |
tag()
Returns the id of this bar item.
|
String |
title()
Returns the title of this bar item.
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- A Boolean that defines whether this bar item is enabled.public UIImage image()
public void setImage(UIImage image)
image
- The image for this bar item.public UIEdgeInsets imageInsets()
public void setImageInsets(UIEdgeInsets imageInsets)
imageInsets
- The image inset/outset for each edge.public String title()
public void setTitle(String title)
title
- The title for this bar item.public int tag()
public void setTag(int tag)
tag
- The id for this bar item.Copyright © 2020. All rights reserved.