AugustRush / UICollectionView-ARDynamicHeightLayoutCell

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

Not working for Larger Text #10

Closed siddharthsuneel closed 8 years ago

siddharthsuneel commented 8 years ago

Hello @AugustRush I have trying to implement this, but not getting exact height for larger text. I have attached a text file containing the string I was using. Please find the attachment. Dummy Text String.zip

AugustRush commented 8 years ago

This may be a system bug, i have update my demo. you need set a correct 'preferredMaxLayoutWidth' for multi-line UIlabel. please see my demo detail.

siddharthsuneel commented 8 years ago

@AugustRush I really appreciate your effort, But if you again run this demo you can see that when cell's content label is having the larger text, complete text is not being displayed some lines from the text are missing. Please take a look.

AugustRush commented 8 years ago

please see my last commit, complete text is not being displayed some lines because i set a wrong value to multi-line 'contentLabel', sorry for this.

siddharthsuneel commented 8 years ago

Great, It worked now... Thanks. :)