(Created page with '{{occlass|library=UIKit.framework}} UISwitch is a UI element — an On/Off switch. == Changing background color of the UISwitch to orange == The background color of the UI…') |
mNo edit summary |
||
Line 1: | Line 1: | ||
[[UISwitch]] is a UI element — an On/Off switch. | [[UISwitch]] is a UI element — an On/Off switch. | ||
Line 12: | Line 10: | ||
* Official documentation: http://developer.apple.com/iphone/library/documentation/uikit/reference/UISwitch_Class/Reference/Reference.html | * Official documentation: http://developer.apple.com/iphone/library/documentation/uikit/reference/UISwitch_Class/Reference/Reference.html | ||
* Extra headers: http://github.com/kennytm/iphone-private-frameworks/blob/master/UIKit/UISwitch2.h | * Extra headers: http://github.com/kennytm/iphone-private-frameworks/blob/master/UIKit/UISwitch2.h | ||
{{occlass|library=UIKit.framework|navbox=on}} |
Latest revision as of 17:37, 12 October 2009
UISwitch is a UI element — an On/Off switch.
Changing background color of the UISwitch to orange
The background color of the UISwitch is blue by default, but you can change it to orange by calling
[theSwitch setAlternateColors:YES];
References
- Official documentation: http://developer.apple.com/iphone/library/documentation/uikit/reference/UISwitch_Class/Reference/Reference.html
- Extra headers: http://github.com/kennytm/iphone-private-frameworks/blob/master/UIKit/UISwitch2.h