I have a UIScrollView that contains a UIView inside.
The UIScrollView has paging enabled and is 320×500
The UIView is 320×480
My UIView doesn’t scroll in the simulator or on the device. What am I doing wrong?
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 probably didn’t set the
contentSizeproperty of theUIScrollView, which is aCGSize.Set this property with the content view frame’s size.
Also your
UIViewisn’t larger than the scroll view, but it should at least bounce the scroll.