标签:cat object ios oid color with eve blog cgpoint
1 - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event 2 3 { 4 NSSet *allTouch = [event allTouches]; 5 UITouch *touch = [allTouch anyObject]; 6 CGPoint point = [touch locationInView:[touch view]]; 7 int x = point.x; 8 int y = point.y; 9 NSLog(@"x,y == (%d, %d)", x, y); 10 }
标签:cat object ios oid color with eve blog cgpoint
原文地址:http://www.cnblogs.com/crazygeek/p/5720229.html