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
UITexturedButton: Difference between revisions - iPhone Development Wiki

UITexturedButton: Difference between revisions

From iPhone Development Wiki
(Created page with '{{occlass|library=UIKit.framework}} right|framed|UITexturedButton, in the normal and highlighted states. UITexturedButton is a subclass of [[…')
 
mNo edit summary
Line 1: Line 1:
{{occlass|library=UIKit.framework}}
[[Image:UITexturedButton.png|right|framed|UITexturedButton, in the normal and highlighted states.]]
[[Image:UITexturedButton.png|right|framed|UITexturedButton, in the normal and highlighted states.]]


Line 18: Line 16:


* Header: http://github.com/kennytm/iphone-private-frameworks/blob/master/UIKit/UITexturedButton.h
* Header: http://github.com/kennytm/iphone-private-frameworks/blob/master/UIKit/UITexturedButton.h
{{occlass|library=UIKit.framework|navbox=on}}

Revision as of 17:37, 12 October 2009

UITexturedButton, in the normal and highlighted states.

UITexturedButton is a subclass of UIButton which is a button with textured look. Since UITexturedButton is a UIButton, it can be used like a normal UIButton.

The UITexturedButton has a buttonType of 110, although [UIButton buttonWithType:110] will not produce a textured button.

Example code:

UITexturedButton* textureButton = [[UITexturedButton alloc] initWithFrame:CGRectMake(20, 20, 150, 50)];
[textureButton setTitle:@"Textured Button" forState:UIControlStateNormal];	
[myView addSubview:textureButton];
[textureButton release];

Reference