<分区>
尝试在 Collection View 上注册点击以使用以下方法关闭键盘
override func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath){
inputTextField.endEditing(true)
}
但是我收到一个编译错误,指出该方法没有覆盖其父类(super class)中的任何方法。
该类是 UICollectionViewController 和 UICollectionViewDelegateFlowLayout 类型
同样使用 swift 3。
谢谢。