1
すべてを選択し、すべてを選択してcollectionView
のすべてのセルを選択解除し、すべてを選択解除したいUIButton
? 誰かを助けてください。UICollectionViewCellでチェックボックスの画像を選択または選択解除して表示しますか?
//Delegate Method cellForItemAtIndexPath
func collectionView(collectionView: UICollectionView,
cellForItemAtIndexPath indexPath: NSIndexPath) ->
UICollectionViewCell
{
//Get a reference to our storyboard cell
let cell = collectionView.dequeueReusableCellWithReuseIdentifier(
"pickSomecell",
forIndexPath: indexPath) as! pickSomeGridViewController
//Show Images in grid view
cell.cellImage.image = self.arrAllOriginalImages[indexPath.row] as? UIImage
cell.toggleSelected()
//return cell.
return cell
}
おかげ
としてやってみては? –
はい@BhumitMehta しかし、私は一緒にすべての画像を選択したいと思います。 – kishor
CellForItemAtIndexPathにコードを投稿できますか? –