I want to have several buttons and other objects in a long UIScrollView
in my app. In storyboard, I added a UIScrollView
to fill the entre view, and then created an IBOutlet
in my .h file. I synthesized the scroller in my .m file, and then used the following code to start the scroller:
@synthesize scroller = _scroller;
- (void)viewDidLoad
{
[super viewDidLoad];
[_scroller setScrollEnabled:YES];
[_scroller setContentSize:CGSizeMake(640, 3000)];
}
So now I need to know how to actually add things, such as buttons, to the area of the scroller that extends below what you can see in the view. My problem is that as I add butons to my view in storyboard, I can only add things to what you can see in the view, and therefore need to know how to add buttons to part that I will scroll to!
Hopefully this is clear. Thanks for all your help!