UIButton 按钮状态和设置

UIButton的状态有 deault、hightlight、selected和disabled,对应的为:

UIControlStateNormal               //正常状态

UIControlstateHighlighted         //高亮

UIControlStateDisabled            //禁用状态

UIControlStateSelected           //选中状态

设置方法为:

.highlighted = YES/NO

.enabled = YES/NO

.selected = YES/NO

猜你喜欢

转载自deep-fish.iteye.com/blog/1736518