collectionview with the horizontal scroll with mulitple section
<p>I want to develop the screen(objective C) like this : <a href="https://i.stack.imgur.com/c00In.png" rel="noreferrer"><img src="https://i.stack.imgur.com/c00In.png" alt="enter image description here"></a></p>

<p>In this there are section names : </p>

<ol>
<li>New Games we Love</li>
<li>New Apps We Love</li>
</ol>

<p>Both have horizontal scroll and independent to each other.</p>

<p>My question is what is the possible way i should use to implement this from below two option. Please provide me any reference sample if available:</p>

<ol>
<li>Can i achieve the same behaviour withe single <code>UICollectionView</code> and having different section (dynamic). But the scroll for different section should be independent. Because it may possible that section 1 may have different number of items(rows) and section 2 may have different number of items (rows)</li>
<li>Do i have to take multiple collectionview programmatically
and insert then in the uiscrollview (vertical scrollview).
abd then define the horizontal scroll and add the items in the cell by taging the collectionview.</li>
</ol>

<p>I had done the collectionview with the horizontal scrolling by below code at present : </p>

<pre><code>- (void)viewDidLoad {
    [super viewDidLoad];

    self.view = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

    UICollectionViewFlowLayout *layout=[[UICollectionViewFlowLayout alloc] init];
    _collectionView=[[UICollectionView alloc] initWithFrame:self.view.frame collectionViewLayout:layout];
    [_collectionView setDataSource:self];
    [_collectionView setDelegate:self];

    [_collectionView registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@"cellIdentifier"];
    [_collectionView setBackgroundColor:[UIColor redColor]];

    [self.view addSubview:_collectionView];

    // Do any additional setup after loading the view, typically from a nib.
}

#pragma mark Collection View Methods

- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
{
    return 15;
}

// The cell that is returned must be retrieved from a call to -dequeueReusableCellWithReuseIdentifier:forIndexPath:
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
    UICollectionViewCell *cell=[collectionView dequeueReusableCellWithReuseIdentifier:@"cellIdentifier" forIndexPath:indexPath];

    cell.backgroundColor=[UIColor greenColor];
    return cell;
}

- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
{
    return CGSizeMake(50, 50);
}
</code></pre>

<p>Please help.</p>