How can I detect if my UIView frame is equal to myFrame?
I need something like:
CGRect myFrame;
myFrame = CGRectMake(0, -51, 320, 50);
if(view.frame == myFrame)
{
NSLog(@"Congrats");
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use
See the apple docs on CGGeometry Reference for more info: http://developer.apple.com/library/ios/#documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html.