@HelloJansen
2016-07-28T05:42:00.000000Z
字数 255
阅读 679
touch
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
NSSet *allTouch = [event allTouches];
UITouch *touch = [allTouch anyObject];
CGPoint point = [touch locationInView:[touch view]];
int x = point.x;
int y = point.y;
NSLog(@"x,y == (%d, %d)", x, y);
}