is there reasons why this code won't work on iphone and will on ipad?

45 Views Asked by At

the code is:

if(CGRectIntersectsRect(icon1.frame, pig.frame) && icon1.image == [UIImage        imageNamed:@"BerryBlueberryIphone.png"]){

}

the code works in ipad but not iphone. spelling is correct for png file i can't seem to find out why it does not work. it was working before on all devices but i don't know if after updating Xcode there my be a setting affecting the line of code.

if more info is needed please let me know. would really like to figure this out today.

0

There are 0 best solutions below