Hopefully, I worded the question properly. Currently I have the following code:
-(void)changeImage {
if (CGRectContainsPoint(star1.frame, lastPoint))
{
image.image = [UIImage imageNamed:@"first.png"];
}
}
The code changes the image when the mouse/finger touches the star1.frame. I would like it to change only if it touches star1.frame, star2.frame, and star3.frame (all three) in no particular order.
Aucun commentaire:
Enregistrer un commentaire