Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
  2. info = [array objectAtIndex:indexPath.row];
  3. static NSString *cellIdentifier = @"empCell";
  4. UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:cellIdentifier forIndexPath:indexPath];
  5. titlebutton = (UIButton *)[cell viewWithTag:100];
  6. [titlebutton addTarget:self action:@selector(onClick:) forControlEvents:UIControlEventTouchUpInside];
  7. [titlebutton setTitle:info.name forState:UIControlStateNormal];
  8. return cell;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement