(Created page with '{{occlass|library=UIKit.framework}} right|framed|UITexturedButton, in the normal and highlighted states. UITexturedButton is a subclass of [[…') |
m (+buttonWithType: *does* produce a textured button.) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Image:UITexturedButton.png|right|framed|UITexturedButton, in the normal and highlighted states.]] | [[Image:UITexturedButton.png|right|framed|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. | [[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 <tt>buttonType</tt> of 110 | The UITexturedButton has a <tt>buttonType</tt> of 110. | ||
Example code: | Example code: | ||
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}} |
Latest revision as of 09:38, 6 February 2010
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.
Example code:
UITexturedButton* textureButton = [[UITexturedButton alloc] initWithFrame:CGRectMake(20, 20, 150, 50)];
[textureButton setTitle:@"Textured Button" forState:UIControlStateNormal];
[myView addSubview:textureButton];
[textureButton release];
Reference