Hi leute,
Habe eine UICollectionView mit 24 Elementen.
So sieht die cellForRow methode aus:
Alles anzeigen
Es lagt und scrollt schlimm wie sau auf dem iPad Air 1.
Steh ich aufm Schlauch oder bin ich nur behindert?
Danke & Gruß
Habe eine UICollectionView mit 24 Elementen.
So sieht die cellForRow methode aus:
Quellcode
- - (UICollectionViewCell *) collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
- {
- DoorCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"DoorCell" forIndexPath:indexPath];
- if(!cell)
- {
- cell = [[NSBundle mainBundle] loadNibNamed:@"DoorCell" owner:self options:0][0];
- }
- [cell.backgroundImageView setImage:[UIImage imageNamed:[NSString stringWithFormat:@"%ld_Door", indexPath.row+1]]];
- cell.titleLabel.text = [NSString stringWithFormat:@"%ld", indexPath.row+1];
- return cell;
- }
Es lagt und scrollt schlimm wie sau auf dem iPad Air 1.
Steh ich aufm Schlauch oder bin ich nur behindert?
Danke & Gruß