摘要:
UIControlEventTouchEnter这个事件我发现是这样触发的 当你点击button后,手指移出button界外,然后在回到button界内就触发这个事件了 阅读全文
摘要:
-(void)viewDidLoad { [super viewDidLoad]; // create a new button UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [button setTitle:@"Drag me!" forState:UIControlStateNormal]; // add drag listener [button addTarget:self action:@selector(wasDragged:withEvent:) fo... 阅读全文