Hi, I've been playing around with
lesson 14 - Multitouch demo. . I know how to use it with a newly create image done in viewDidLoad, but I'm not sure how to use it with a current UIImageView from interface builder. I would copy the touchimageview classes but it's a very long line of code so it might clutter the page. Here's a snippet in my current class. This one creates a new UIImage. I have a current UIImageView called imageOverlay. I'm not sure how to assign the touchviewImage to it. Hope someone can help. Thanks in advanced!
Code:
UIImage *image = [UIImage imageNamed:@"picture_mine.png"];
CGRect imageRect = CGRectMake(0.0, 0.0, IMAGE_WIDTH, 0.0);
imageRect.size.height = IMAGE_WIDTH * image.size.height / image.size.width;
TouchImageView *touchImageView = [[TouchImageView alloc] initWithFrame:imageRect];
touchImageView.image = image;
touchImageView.center = CGPointMake(160.0, 230.0);
[self.view addSubview:touchImageView];