I want to implement a custom UIView (from code) with dynamic height based on content (similar to UILabel). I can do this by doing intrinsicContentSize - and it seems to work correctly, but ...
When I add my custom view to view the controller on the storyboard, I have an error (no height limit) - even when everything seems to be correctly changed during startup.
When you add UILabel to the storyboard, you do not need to specify the height, there are no errors. How to achieve the same behavior for a custom UIView (I want to use it in a storyboard)?
ios uilabel uiview storyboard
Piotr
source share