开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜