views:

13

answers:

1

New to iPhone dev. Can someone tell me why

-(IBAction) handleTapGesture:(UIGestureRecognizer *) sender {
    CGPoint *tapPoint = [sender locationInView:imageView];
    NSLog(@"tapped");
}

gives me error (for the CGPoint line):

incompatible types in initialization

+1  A: 

Remove the * after CGPoint.

Evan Mulawski
haha.. could've sworn I'd tried that.. guess that's how it goes for newbies
tybro0103
CGPoint is a structure, not an object/class. Therefore, you do not need to use the *.
Evan Mulawski