AugustRush / UICollectionView-ARDynamicHeightLayoutCell

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

Size always returns 0 #15

Open burakkilic opened 7 years ago

burakkilic commented 7 years ago

Hi;

I don't use autolayout in my code. I'm using Masonry for autolayout jobs.

I need to use ARDynamicHeightLayoutCell but it is giving always 0.

[collectionView ar_sizeForCellWithIdentifier:@"ItemAllergensCollectionViewCell" indexPath:ip fixedWidth:collectionView.bounds.size.width configuration:^(__kindof ItemAllergensCollectionViewCell *cell) {
        [cell configureCellWithEntity:self.entity];
    }];

What should I do more?

AugustRush commented 7 years ago

Did you use the Auto Layout?

burakkilic commented 7 years ago

I'm using Masonry for autolayout.

AugustRush commented 7 years ago

May your layout is not correct?