Difference between revisions of "UIButton"

From iPhone Development Wiki
Jump to: navigation, search
m (Button types)
m (Button types: 2 more button types.)
Line 6: Line 6:
 
|firmware=2.0 –
 
|firmware=2.0 –
 
}}
 
}}
There 6 documented button types and 6 undocumented button types
+
There 6 documented button types and 9 undocumented button types
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 36: Line 36:
 
|-
 
|-
 
| 113 || UIRoundedRectButton || fillColor = [[UIColor|tableCellGroupedBackgroundColor]]
 
| 113 || UIRoundedRectButton || fillColor = [[UIColor|tableCellGroupedBackgroundColor]]
 +
|-
 +
| 114 || [[UIPopoverButton]] || Normal
 +
|-
 +
| 115 || UIPopoverButton || Delete
 
|}
 
|}
  

Revision as of 10:25, 18 March 2011

UIButton is a UI element, which is usually a button that the user can tap on to do some actions.

Button types

Signature +(UIButton*)buttonWithType:(UIButtonType)type;
Available in 2.0 –

There 6 documented button types and 9 undocumented button types

Type Class Note
0 (UIButtonTypeCustom) UIButton
1 (UIButtonTypeRoundedRect) UIRoundedRectButton
2 (UIButtonTypeDetailDisclosure) UIButton UITableNextButton.png / UITableNextButtonPressed.png
3 (UIButtonTypeInfoLight) UIButton UIButtonBarInfo.png
4 (UIButtonTypeInfoDark) UIButton UIButtonBarInfoDark.png
5 (UIButtonTypeContactAdd) UIButton UIButtonBarContactAdd.png / UIButtonBarContactAddPressed.png
100 UINavigationButton style = 0
101 UINavigationButton style = 1
102 UINavigationButton style = 2
110 UITexturedButton
111 UIGlassButton
112 UINavigationButton style = 4
113 UIRoundedRectButton fillColor = tableCellGroupedBackgroundColor
114 UIPopoverButton Normal
115 UIPopoverButton Delete

References