mNo edit summary |
m (+ image and some little description.) |
||
Line 1: | Line 1: | ||
[[Image:UIToolbar.png|right|thumb|The toolbar in {{applink|MobileSafari}}.]] | |||
'''UIToolbar''' is a view containing buttons or custom views represented by [[UIBarButtonItem]]s. It is comparable with [http://en.wikipedia.org/wiki/Toolbar toolbars] in standard GUI. | |||
== Animating the trash can icon == | == Animating the trash can icon == | ||
{{function signature | {{function signature | ||
Line 20: | Line 22: | ||
}} | }} | ||
Setting this property to YES will make the lower part of the toolbar appear rounded. | Setting this property to YES will make the lower part of the toolbar appear rounded. | ||
== See also == | |||
* [[UITabBar]], often confused with UIToolbar. | |||
* [[UIBarButtonItem]] | |||
== References == | == References == | ||
* Official reference: {{sdklink|UIKit|UIToolbar}} | * Official reference: {{sdklink|UIKit|UIToolbar}} | ||
{{IPFHeader|UIKit|3=2}} | {{IPFHeader|UIKit|3=2}} |
Revision as of 18:16, 11 January 2010
Error creating thumbnail: File missing
UIToolbar is a view containing buttons or custom views represented by UIBarButtonItems. It is comparable with toolbars in standard GUI.
Animating the trash can icon
Signature | -(void)animateToolbarItemIndex:(NSUInteger)index duration:(NSTimeInterval)duration target:(id)target didFinishSelector:(SEL)selector; |
---|---|
Available in | 3.0 – |
You can use the -[UIToolbar animateToolbarItemIndex:duration:target:didFinishSelector:] method to animate the trash can icon (UIBarButtonSystemItemTrash). The first call will open the trash can, and the second call closes it.
User configuration
Signature | -(void)beginCustomizingItems:(NSArray*)items |
---|---|
Available in | 2.0 – |
Calling this method will make a configuration screen similar to that of UITabBar.
Rounded corners
Signature | @property(assign,nonatomic) BOOL hasRoundedCorners; |
---|---|
Available in | 3.0 – |
Setting this property to YES will make the lower part of the toolbar appear rounded.
See also
- UITabBar, often confused with UIToolbar.
- UIBarButtonItem
References
- Official reference: UIToolbar
- Header: http://github.com/kennytm/iphone-private-frameworks/blob/master/UIKit/UIToolbar2.h