Iam using PSTCollection view for grid layout so it will support iOS 5.0 onward ,but when i click one cell its working fine .Iam trying to implement a selection effect like a glow border on selected cell so it will increase user experience.Any one know how to do it in PSTCollectionview?
Asked
Active
Viewed 325 times
1 Answers
1
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
{
CustomCell *customCell = (CustomCell *)[collectionView dequeueReusableCellWithReuseIdentifier:@"CustomCell" forIndexPath:indexPath];
//TODO: Customize your cell here
}

iCoder
- 1,645
- 1
- 15
- 23
-
when the user select's a cell. the above method is called. U need to access the cell clicked and add the effect u like to the cell. Hope u got it. – iCoder Jul 03 '13 at 06:55
-
u mean some thing like customCell.background-color? – Navi Jul 03 '13 at 06:58
-
Yes u can change the background color or add a overlay view to depict that the cell is selected. – iCoder Jul 04 '13 at 06:19