ra1028 / RAReorderableLayout

A UICollectionView layout whitch can move item with drag and drop.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cellForItemAt or cellForItemAtIndexPath

mostafaasf opened this issue · comments

After migrating to swift 3, cellForItemAtIndexPath needed to change to cellForItemAt, but when I changed it an error appeared saying:

Method 'collectionView(_:cellForItemAt:)' has different argument names from those required by protocol 'RAReorderableLayoutDataSource' ('collectionView(_:cellForItemAtIndexPath:)')

And suggests a quick fix to change it back to cellForItemAtIndexPath.

Ooops was using an earlier version. Updated and it worked perfectly.