Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
- info = [array objectAtIndex:indexPath.row];
- static NSString *cellIdentifier = @"empCell";
- UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:cellIdentifier forIndexPath:indexPath];
- titlebutton = (UIButton *)[cell viewWithTag:100];
- [titlebutton addTarget:self action:@selector(onClick:) forControlEvents:UIControlEventTouchUpInside];
- [titlebutton setTitle:info.name forState:UIControlStateNormal];
- return cell;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement