J'utilise ce code pour mon UIcollectionView, son travail bien dans iOS6 mais avec iOS 7 et son ne fonctionne pas, comme une fois que je commence à défiler l'CollectionView les éléments entiers orientation foiré. Toute idée de ceUICollection Voir ios 7 numéros
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView
{
return 1;
}
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
{
return self.filteredNewsItems.count;
}
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
NewsItemCell *cell = (NewsItemCell *)[collectionView dequeueReusableCellWithReuseIdentifier:reuseIdentifier forIndexPath:indexPath];
cell.autoresizingMask = UIViewAutoresizingNone;
[cell loadWithArticle:self.filteredNewsItems[indexPath.item]];
return cell;
}
Pouvez-vous fournir une capture d'écran? –
là vous allez instantané ajouté. – Alex
aussi cela ne se passe qu'après défilement, sinon son aspect est bien et orienté. – Alex