书写的方法
// 触摸
-
(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{//取出touches集合元素
UITouch *touch = [touches anyObject];
NSLog(@"%@", touch);CGPoint point = [touch locationInView:self.view];
// 打印point
NSLog(@" point = %@", NSStringFromCGPoint(point));
}
打印
2015-05-06 14:48:54.859 XXHJect[18241:317948] 4444{127.5, 201}
只会执行点击cell的方法 , 我在View 写的触摸方法 不走 ;
求大神解决 ,
我要让两个方法都走