SebastienThiebaud/STTweetLabel — pull request #96 by sprynmr (2014-04-14 04:55:42+00:00)
Title: Removed the frame setting in 'updateText'.

Removed the frame setting in 'updateText'. I really don't think a view should be randomly updating it's own frame like that unexpectedly. Definitely not in an autolayout world. (Please correct me if I'm incorrect in that belief.) `sizeToFit` was causing me troubles with not giving the textView enough width. Setting the frame was causing some height cut off issues. I think it makes the most sense to expect users to use `suggestedFrameSizeToFitEntireStringConstraintedToWidth` and set the correct frame. Alternatively, we could perhaps override `intrinsicContentSize` and run the 'sizeThatFits' calculation with the `preferredMaxLayoutWidth` setting on the label.

Also changed t 'suggestedFrameSizeToFitEntireStringConstraintedToWidth' to just use the proper method on '_textView' 'sizeThatFits'. Believe that's the most appropriate way to get an accurate height, though UITextView is probably using similar code to what was already there internally. It's definitely cleaner this way, and hopefully future proofs in case they update internally how that's calculated.