What is the use of the contentOffset property in UIScrollView?
What is the use of the contentOffset property in UIScrollView ?
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.
According to the documentation, the
contentOffsetproperty represents:In plain speak, it’s how far the view has moved in each direction (vertical and horizontal). You can unpack vertical and horizontal distance by accessing the
xandyproperties of theCGPoint: