Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
UIToolbar: Difference between revisions - iPhone Development Wiki

UIToolbar: Difference between revisions

From iPhone Development Wiki
(Created page with '== Animating the trash can icon == {{function signature |signature=-(void)animateToolbarItemIndex:(NSUInteger)index duration:(NSTimeInterval)duration target:(id)target didFinishS…')
 
mNo edit summary
Line 6: Line 6:


You can use the <tt>-[UIToolbar animateToolbarItemIndex:duration:target:didFinishSelector:]</tt> method to animate the trash can icon (UIBarButtonSystemItemTrash). The first call will open the trash can, and the second call closes it.
You can use the <tt>-[UIToolbar animateToolbarItemIndex:duration:target:didFinishSelector:]</tt> method to animate the trash can icon (UIBarButtonSystemItemTrash). The first call will open the trash can, and the second call closes it.
== User configuration ==
{{function signature
|signature=-(void)beginCustomizingItems:(NSArray*)items
|firmware=2.0 –
}}
Calling this method will make a configuration screen similar to that of [[UITabBar]].
== Rounded corners ==
{{function signature
|signature=@property(assign,nonatomic) BOOL hasRoundedCorners;
|firmware=3.0 –
}}
Setting this property to YES will make the lower part of the toolbar appear rounded.


== References ==
== References ==
* Official reference: {{sdklink|UIKit|UIToolbar}}
* Official reference: {{sdklink|UIKit|UIToolbar}}
{{IPFHeader|UIKit|3=2}}
{{IPFHeader|UIKit|3=2}}

Revision as of 23:32, 4 November 2009

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.

References