2012-07-07から1日間の記事一覧
以下のコードで判定できる。 CGPoint touchLocation = [touch locationInView:self]; if (CGRectContainsPoint(myImageView.frame, touchLocation)) 参考:http://stackoverflow.com/questions/2221367/comparing-a-uitouch-location-to-uiimageview-rectang…
以下のコードで判定できる。 CGPoint touchLocation = [touch locationInView:self]; if (CGRectContainsPoint(myImageView.frame, touchLocation)) 参考:http://stackoverflow.com/questions/2221367/comparing-a-uitouch-location-to-uiimageview-rectang…