Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 重新排序UICollectionView部分_Ios_Swift_Uicollectionview - Fatal编程技术网

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
并拖放。我可以选择标题内的单元格,但不能选择标题/节本身