iPhoneの座標を変換する方法がわかりません。
ワンタッチすると座標が取得されます。
触って離すと、始点と終点の違いがわかります。
タッチの絶対位置を取得するにはどうすればよいですか?
ありがとう!
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [[event allTouches] anyObject];
CGPoint location = [touch locationInView:touch.view];
NSLog(@"X: %f",location.x);
NSLog(@"Y: %f",location.y);
}
画像をタッチ&ドラッグでリサイズしたい(高さのみ)