I created a collection view with custom collection cell.set with flowlayout as
UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc] init];
[flowLayout setItemSize:CGSizeMake(250, 480)];
[flowLayout setScrollDirection:UICollectionViewScrollDirectionHorizontal];
[self.templateCollectionView setCollectionViewLayout:flowLayout];
I set it horizontal but still a cell is misplaced in figure see att mmp
misplaced & it will back in its correct position if we scroll and load it back. Can anyone suggest whats wrong in this ?