I am not really sure why the target is not getting called when I do this:
UIImage * imgSrc = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:imageSource]]];
UIImageView * imgView = [[[UIImageView alloc] initWithImage:imgSrc] retain];
UIPinchGestureRecognizer * pinchGestureRecognizer = [[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(resizeImage:)];
[imgView addGestureRecognizer:pinchGestureRecognizer];
[pinchGestureRecognizer release];
- (IBAction)resizeImage:(UIPinchGestureRecognizer *)sender
{
//not getting here
}
转民形象并没有被称作。 形象显示得很好。