AugustRush / UICollectionView-ARDynamicHeightLayoutCell

Automatically UICollectionViewCell size calculating.
MIT License
565 stars 86 forks source link

Load the network data for the first time, pictures showed not to come out, after the refresh can display, how to solve? #13

Closed sany620 closed 7 years ago

sany620 commented 7 years ago

Load the network data for the first time, pictures showed not to come out, after the refresh can display, how to solve? code: CGFloat width = (SCREENWIDTH - 30)/2; return [collectionView ar_sizeForCellWithIdentifier:@"RecommendedCell" indexPath:indexPath fixedWidth:width configuration:^(id cell) { RecommendedListResultModel *listData =self.m_newArr[indexPath.row]; [cell setCellData:listData];

AugustRush commented 7 years ago

What did you use to download images? it's strange.

sany620 commented 7 years ago

Is to load the network images, not local。Can provide the solution?

AugustRush commented 7 years ago

The 'ImageView ' need constraint to confirm size itself, so you can add fixed size constraints as default size and update it after network images has loaded.

sany620 commented 7 years ago

thanks