Member Since: Aug 13, 2011
Location: West Sussex, UK
04-21-2014, 03:26 PM
What are you trying to check for in your IF conditional statement ?
To get the x and y coordinates of your image view within it's superview, you would retrieve it's frame origin, or center origin like this.
CGPoint myImageViewsbottomLetfPoint = myImageView.frame.origin;
CGPoint myImageViewsCenterPoint = [myImageView center];
NSLog(@"myImageView's bottom left coordinates x = %f y = %f", myImageViewsbottomLetfPoint.x, myImageViewsbottomLetfPoint.y);
NSLog(@"myImageView's center coordinates x = %f y = %f", myImageViewsCenterPoint.x, myImageViewsCenterPoint.y);
then you would check the x and y coordinates for a specific value, if that's what you're trying to achieve.
Be more specific about what you want to know.