I have all my buttons / labels / texts embedded in a uiscrollview. Everything works fine. However, how do I see / edit beneath the 480px mark in IB? It cuts off the uiscrollview at the bottom. I am using storyboarding in xcode 4.2 ios5.
Asked
Active
Viewed 1,199 times
0
-
I think your question may already be answered by this thread: http://stackoverflow.com/questions/1135163/how-do-i-use-uiscrollview-in-interface-builder – Carl Veazey Aug 27 '12 at 00:39
-
Thank you, but that doesn't answer my question. I have buttons BENEATH the scrollview 480px...I can not see them in interface builder. They are getting clipped off at the bottom. – user1626043 Aug 27 '12 at 01:40
-
1There are a couple of workarounds suggested in the answers... one I like is having a separate view where you lay out your scroll view content, and then add that view to the scroll view in viewDidLoad – Carl Veazey Aug 27 '12 at 01:45
1 Answers
2
Just in case you haven't yet found the answer and to save an answer. The solution is simple, but hard to find an answer on the web. Try this:
- Select the Scroll View object
- Select the Size Inspector (option-cmd-4)
- Under View -> Y, enter a negative number (acts as scroll up)
- Make sure View -> Height is large enough for the contents of your scroll view
- Add, position and configure subview
- (Optional) Set the View -> Y back to 0 for building
Before:
After setting the Y value:

David
- 3,285
- 1
- 37
- 54
-
Nice answer. Can't imagine Xcode does not have a better way for users to edit the scroll view contents. – Raptor May 20 '14 at 08:24