Dynamic UIView height with auto layout in iOS 6
You are setting the height contraint of your webView as 266. That’s why the height of the web view is still fixed. You can create this height constraint as an IBOutlet, for example: @property (weak, nonatomic) IBOutlet NSLayoutConstraint *webViewHeightConstraint; And then you can modify the constant of the height constraint when the web view has … Read more