I'm currently working on a iPhone 5 app that has two buttons in the left and right bottom corners of the 4-inch screen and I want to use a scroll to reach them when using iPhone 4 (3.5-inch). I've put the ScrollView on the xib and put the buttons beneath. My .h file is like that:
@interface learnView : UIViewController {
__weak IBOutlet UIScrollView *scroll;
}
- (IBAction)doneLearn:(id)sender;
- (IBAction)randomLearn:(id)sender;
The scroll outlet is linked in the file's owner and I've enabled the scroll in the .m file:
[super viewDidLoad]
[scroll setScrollEnabled:YES];
[scroll setContentSize:CGSizeMake(320, 503)];
I'm not sure about if the CGSizeMake above is defined like it should but the values represent the size of my scrollView on the xib. Also I've set the size of the view as "Freeform". Doing all that has no effect when I run the simulator, the scroll not being present in the view. What am I doing wrong?