eoghain / RBCollectionViewInfoFolderLayout

A UICollectionViewLayout that displays a folder of extra information below your items.
MIT License
92 stars 10 forks source link

CALayer position contains NaN: [nan 222.5] #1

Closed zhw511006 closed 10 years ago

zhw511006 commented 10 years ago

when I first ran this demo, I get this error.

Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan 222.5]'

How to fixe this? Thx!

eoghain commented 10 years ago

Interesting. Seems to be a problem when running on the phone. Not sure when I introduced that since I'm running this on a phone in another app. I'll take a look and see what went wrong.

eoghain commented 10 years ago

Ok, figured it out. I must not have tested the layout when it displays only a single cell per row. The logic has been corrected and everything should be working now.

zhw511006 commented 10 years ago

Good work!