tybro0103
tybro0103

Reputation: 49743

Using tap gesture's locationInView & CGPoint

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

Upvotes: 4

Views: 2167

Answers (1)

Evan Mulawski
Evan Mulawski

Reputation: 55354

Remove the * after CGPoint.

Upvotes: 6

Related Questions