can somebody help me to select and deselect multiple items in collectionview under different sections and selected cells get assigned mark image on it..
here is my code:-
func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
var item = getPostArray[indexPath.section].objectAtIndex(indexPath.row)as? NSString
selectedArray.addObject(item!)
println(selectedArray)
}
func collectionView(collectionView: UICollectionView, didDeselectItemAtIndexPath indexPath: NSIndexPath)
{ var item = getPostArray[indexPath.section].objectAtIndex(indexPath.row)as? NSString selectedArray.removeObject(item!)
}
