I am working on an application where i need to place a uiscrollview within an uiview. The view has a fixed back ground, and in lower half of the view i have to place 30 buttons which scrolls within that area. Lets say the uiview is of 320×480, then the scrollview i have to place will be at (40, 160) to (280, 300). I just need the scroll view to have the 30 buttons inside it. so that view remains fixed, only the buttons can be selected by scrolling vertically. How can i do that?
When i place the scroll view and connect it with file’s owner ‘view’ it eats up all the view space.
Yes, i am a newbie :$
First Add UIScrollView to the view:
If you wanted to add 30 buttons, you can use ‘for’ loops to allocate UIButton‘s and then add it on scrollview.