I have tried many different solutions, but none of them work for me.
I have a horizontal scroll view, now it starts on the left, but how can I launch it in the middle?
I am using this code right now in the controller:
- (void)viewDidLoad { [scroller2 setScrollEnabled:YES]; [scroller2 setContentSize:CGSizeMake(1735, 300)]; [super viewDidLoad]; }
and IBOutlet UIScrollView *scroller2; in the header file.
I made the content in the interface builder (.xib file) and I am using Xcode 4.2!
Thanks in advance!
source share