uitextフィールドを編集した後、コレクションビューで最初のセルを選択しようとしています。uitextfieldを編集した後、コレクションビューでセルを選択
in function func textFieldDidEndEditing(textField: UITextField)
call関数incandescenteCollection.selectItemAtIndexPath(NSIndexPath(forRow: 0 , inSection: 0), animated: true, scrollPosition: UICollectionViewScrollPosition.CenteredHorizontally)
ここでincandescenteCollectionはIBOutletからcollectionviewです。 @IBOutlet weak var incandescenteCollection: UICollectionView!
しかし、動作しません。何か案が?
このテキストフィールドはどこにありますか?それは細胞の中にありますか? – Callam
実際の関連コードを投稿した方が読みやすくなります。 – rmaddy