2016-10-04 3 views
0

flowLayout 객체에 LXReorderableCollectionViewFlowLayout을 사용하고있어 콜렉션 뷰의 순서가 바뀌 었으며 컬렉션보기의 섹션 헤더가 길게 누르는 터치에 응답하지 않게하려고합니다. 하지만 다음 델리게이트 호출에서 섹션 헤더 또는 셀인지 확인할 수 없습니다.UICollectionView의 섹션 헤더보기에서 길게 누르는 것을 어떻게 무시할 수 있습니까?

func collectionView(collectionView: UICollectionView, canMoveItemAtIndexPath indexPath: NSIndexPath) -> Bool { 
} 

알아두기?

당신은 세포 사용자의 종류를 확인하기 위해 검사를 넣을 수 있습니다

답변

0

긴 키를 눌러입니다 :

func collectionView(collectionView: UICollectionView, canMoveItemAtIndexPath indexPath: NSIndexPath) -> Bool { 

    if let cell = collectionView.cellForItemAtIndexPath(indexPath) as? SectionClassName { 
     return false 
    } 

} 
관련 문제