How to make the content of view scrollable using IB ?
I know how to do that programmatically, but can’t figure out how to that using IB. I have googled, but didn’t found useful solution.
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 want to drag a scroll view widget from right-side panel under objects onto the .xib file’s view. You can then add other views inside the scroll view by dragging. In this exam I’ve dragged a UILabel view onto the scroll view to place it inside. You can see the view hierarchy on the left in Xcode.
I’ve attached a screenshot that shows a section of Xcode 4 which should demonstrate everything you need! Note that the view hierarchy here is as follows:
UIView (Standard UIView that was created by Xcode when I made the .xib user interface file) > UIScrollView > UILabel
Hope this helps!