For some odd reason a UIImageView doesn't respond to when I touch it. Heres what I mean:
So thats my dilemma. UserInteractionEnabled is on for both of the images. Any advice is greatly appreciated!
Code:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [touches anyObject];
//imageview and maskimage are UIImageViews
//and for some reason this works...
if ([touch view]==maskimage) {
CGPoint location = [touch locationInView:self.view];
maskimage.center=location;
return;
}
//Yet this doesn't
if ([touch view]==imageview) {
CGPoint location = [touch locationInView:self.view];
imageview.center = location;
return;
}
}