Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- + (SongAdditionalTextCell *)resize:(SongAdditionalTextCell *)additionalTextCell{
- UITextView *textView = additionalTextCell.additionalText;
- CGSize sizeThatFitsTextView = [textView sizeThatFits:CGSizeMake(textView.frame.size.width, MAXFLOAT)];
- NSLog(@"content height is %f, frame height is %f", textView.contentSize.height, textView.frame.size.height );
- additionalTextCell.addnlTextHeightConstraint.constant = sizeThatFitsTextView.height;
- return additionalTextCell;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement