當CollectionView開始並停止拖動時,我需要獲取事件/信息。UICollectionViewController moveItemAtIndexPath - 如何知道完成拖動
我認爲這在拖動單元格時必須是正常情況 - 才能夠將列表保存在CollectionView後面。
- (void)collectionView:(UICollectionView *)collectionView
moveItemAtIndexPath:(NSIndexPath *)sourceIndexPath
toIndexPath:(NSIndexPath *)destinationIndexPath{
willDisplayCell是好的調用,而不是didEndDisplayingCell –
@ChrisG。已經更新了我的答案Swift 3. –
謝謝,但仍然是同樣的事情。 –