2016-10-04 7 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 
    } 

} 
関連する問題