Skip to content

iOS 7, Auto-Layout and an Example #1

@jpittman

Description

@jpittman

Having just done some work in a new project that required me to spend some time adapting this code into auto-layout, I need to update the project to include an auto-layout example.

At a high level (from the project), the steps were as follows:

  • Add layout constraints for webview (including height constraints)
  • Add an IBOutlet into the class to manage that height constraint
  • Make sure on resize to set the height constraint correctly.

This SO answer was the key to figure out what was still broken after adding in the constraints.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions