OK, so I'm learning how to use UIScrollView in an interface builder. since scrollView itself has no content, I created another view, contentView, to hold my controls and scrollable content. in this view, I place controls, labels, etc., and then in my code, I set the scroll contentSize to the size of this content.
My question seems amazingly simple and so obvious that I must have missed something. when I created this XIB in IB, I got your standard blank iPhone interface window. I threw scrollView on top of it, it occupied the whole window. I took a look from above, it took up the whole scrollview. I have added some controls that so far I still see inside the contentView rectangle in IB.
My question is, how can I work on / add controls that lie outside the visible part of the contentView in IB? Lol it seems so simple, but I just don't get it. I can set the height of the content view or drag the rectangle to whatever I like (and this is actually the whole point of having scroll), but the fixed UI window from IB will not expand, so I can see the “off-screen” part of the View content to add more controls. This is similar to the fact that it is simply fixed at that size, because the size of one screen of the iPhone and it will not allow me to make it larger / higher.
what did I do wrong?
-a
iphone interface-builder uiscrollview
Aubin labrosse
source share