zepojo/UPCarouselFlowLayout

Glitch - programmatically approach

Closed this issue · 4 comments

Hi,

**

Glitch - programmatically approach

**
Can you help me to resolve this problem? When the numberOfItemsInSection exceeded in 4 the Glitch was happening. Kindly see my attached picture that show the Glitch.
screen shot 2017-04-27 at 3 07 58 pm

Here's my code:
screen shot 2017-04-27 at 3 19 26 pm

and Project Navigation :
screen shot 2017-04-27 at 3 20 19 pm

i have same issue too

We've the same issue.

The below work around is working for us.

func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "cell id", for: indexPath) as! "cell id"
//So that the first cell appears
if indexPath.row != 0 { cell.alpha = 0 }
return cell
}

Hi all,

I just found the solution.

In the storyboard/XIB, "untick" the Prefetch check box.
slider_bug_fix

@ink-spot
Since start from ios 10, "Prefetching" default is set to be true, I suggest mention it in the documentation.