You will probably have to work a bit with iOS. You can add all your views to the UIScrollView , however you need to set the contentSize UIScrollView accordingly. Essentially, for N elements, the scroll width will be:
scrollView.contentSize = CGSizeMake(N * itemWidth + (N - 1) * itemPadding, itemHeight);
Then you need to set the frame for each UIView so that its x coordinate is suitable, and add it to the UIScrollView :
for (int i = 0; i < views.count; i++) { UIView *view = [views objectAtIndex:i]; view.frame = CGRectMake(i * itemWidth + i * itemPadding, view.frame.origin.y, view.frame.size.width, view.frame.size.height); [scrollView addSubview:view]; }
If you need something more complex than a simple linear layout, check out the UICollectionView .
Matt bridges
source share