ios控件 UIControl
《 UIControl》
- (void)addTarget:(id)target action:(SEL)action forControlEvents: (UIControlEvents)controlEvents;
//移除一个事件
- (void)removeTarget:(id)target action:(SEL)action forControlEvents:
(UIControlEvents)controlEvents;
=1<<0, =1<<1, =1<<2, =1<<3, =1<<4, =1<<5, =1<<6, =1<<7, =1<<8,
UIControlEventAllTouchEvents = 0x00000FFF, //所有触摸事件
UIControlEventAllEditingEvents = 0x000F0000, UIControlEventApplicationReserved = 0x0F000000, UIControlEventSystemReserved = 0xF0000000, //所有文本编辑事件
UIControlEventAllEvents = 0xFFFFFFFF//所有事件
UIControlStateDisabled = 1 << 1, //禁用状态
UIControlStateSelected = 1 << 2 //选中状态
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。