Using tap gesture's locationInView & CGPoint
New to iPhone dev. Can someone tell me why
-(IBActio开发者_运维技巧n) handleTapGesture:(UIGestureRecognizer *) sender {
CGPoint *tapPoint = [sender locationInView:imageView];
NSLog(@"tapped");
}
gives me error (for the CGPoint line):
incompatible types in initialization
Remove the * after CGPoint.
精彩评论