kuler90 / RKTagsView

Highly customizable iOS tags view [input, edit, dynamic, tag, token, field, NSTokenField]
MIT License
451 stars 58 forks source link

Update tagsViewHeight Constraint inside uitableviewcell #5

Closed alhazme closed 8 years ago

alhazme commented 8 years ago

Hi Roman, How to update tagsViewHeight.constant if tagsView inside contentview of UITableViewCell? I've tried update tagsViewHeight.constant in tagsViewContentSizeDidChange function, but still not working.

Thanks

kuler90 commented 8 years ago

Hi!

Height constraint uses to restrict height. If you need dynamic height you don't need it. Pay attention to constraints priorities, content hugging priority and content compression resistance priority. RKTagsView implement method "intrinsicContentSize" which is used by Auto Layout for calculating view size. UILabel and UITextView (with disabled scroll) work at the same way. You can read about them.