ios CollectionView 예제 - Cell 아이템 선택 및 간격
ios CollectionView 예제 - Cell 아이템 선택 1. CollectionView Cell을 클릭했을때 실행되는 CollectionView 델리게이트 메소드를 작성한다. /* 아이템 클릭 */ - (void) collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath { NSLog(@"선택된 아이템 %ld-%ld",(long)indexPath.section,(long)indexPath.row); /* 컬렉션 뷰 객체 */ UICollectionViewCell *cell = [self.collectionView cellForItemAtIndexPath:indexPath]; ..