خرید بک لینک

Vote count: 0

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!)

}

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 5 خرداد 1395 ساعت: 11:59

صفحه بندی