UIButton 属性
buttonWithType | 定义button类型 | UIButtonTypeCustom = 0 自定义风格 UIButtonTypeRoundedRect 圆角矩形 UIButtonTypeDetailDisclosure 蓝色小箭头,主要做详细说明用 UIButtonTypeInfoLight 亮色感叹号 UIButtonTypeInfoDark 暗色感叹号 UIButtonTypeContactAdd 十字加号 |
frame | 定义位置 | |
backgroundColor | 背景色 | |
按钮状态 | UIControlStateNormal = 0 常规状态 UIControlStateHighlighted = 1 <<0 高亮 UIControlStateDisabled = 1 << 1 禁用状态 UIControlStateSelected = 1 << 2 选中状态 UIControlStateApplication = 0x00FF0000 当应用程序标志时 UIControlStateReserved = 0xFF000000 为内部框架预留 | |
adjustsImageWhenHighlighted | ||
showsTouchWhenHighlighted | 按下会发光 | |