iPhone Development – What’s the Difference between the Origin and the bounds?
Share
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.
The origin is where view starts so 0,0 for example would mean that the view is in the top left corner of the screen.
The bounds is the size and orgin of the screen together. So if the size is 10, 10 and the origin is 0, 0 then a view is located in the top left of the screen and is 10 pixels x 10 pixels.
Edit 1: More detail
Bounds is a CGRect (Documentation)