Ios 重新排序UICollectionView部分
是否可以拖放整个Ios 重新排序UICollectionView部分,ios,swift,uicollectionview,Ios,Swift,Uicollectionview,是否可以拖放整个UICollectionViewSection。我有6个具有可重用标题的部分和该部分中的2个单元格。我想通过选择该部分的标题对CollectionView重新排序 func collectionView(collectionView: UICollectionView, moveItemAtIndexPath sourceIndexPath: NSIndexPath,toIndexPath destinationIndexPath: NSIndexPath) { let
UICollectionViewSection
。我有6个具有可重用标题的部分和该部分中的2个单元格。我想通过选择该部分的标题对CollectionView重新排序
func collectionView(collectionView: UICollectionView, moveItemAtIndexPath sourceIndexPath: NSIndexPath,toIndexPath destinationIndexPath: NSIndexPath) {
let temp1 = self.embedded.embeddedItemsArray.count
var temp2 = Array(arrayLiteral: temp1)
}
我无法选择UICollectionViewSection
并拖放。我可以选择标题内的单元格,但不能选择标题/节本身