I have a UICollectionView
, and when selecting an item didDeselectItemAt
not get triggered, but when selecting an other item, the first will get triggered. Why?
This is have method is implemented:
override func collectionView(_ collectionView: UICollectionView, didDeselectItemAt indexPath: IndexPath) {
let userSetting = userSettings[(indexPath as NSIndexPath).row]
selectedUserSettingRecordName = userSetting.id
containerViewController!.performSegue(withIdentifier: "message", sender:self)
}
There is no view above the collectionView
which could interfere.