摘要: 触摸事件练习1.如果想让一个空间随你的手指的移动而移动,那么就再touchmove的方法中。 UITouch *touch = [touches anyObject]; CGPoint asd = [touch locationInView:self.view]; self.redView.center = asd;2.拦截视图点击方法---->返回谁,就是点了谁//用于检测具体响应用户触摸点视图的方法- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event{ return self.blue;}3.摇一摇 1... 阅读全文
posted @ 2013-12-21 20:11 nx的封装 阅读(264) 评论(0) 推荐(0) 编辑