摘要: UIControlEventTouchEnter这个事件我发现是这样触发的 当你点击button后,手指移出button界外,然后在回到button界内就触发这个事件了 阅读全文
posted @ 2012-04-19 21:32 高笑228 阅读(109) 评论(0) 推荐(0) 编辑
摘要: -(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... 阅读全文
posted @ 2012-04-19 01:38 高笑228 阅读(890) 评论(0) 推荐(0) 编辑