开发者

Using tap gesture's locationInView & CGPoint

开发者 https://www.devze.com 2023-01-21 05:14 出处:网络
New to iPhone dev. Can someone tell me why -(IBActio开发者_运维技巧n) handleTapGesture:(UIGestureRecognizer *) sender {

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

精彩评论

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