Change height constraint programmatically Change height constraint programmatically ios ios

Change height constraint programmatically


Try setting the constant in viewDidLayoutSubviews instead.

Note that using the text view's contentSize property to set the text view's height does not work in iOS 7. See https://stackoverflow.com/a/18837714/1239263