Tutorial for creating the constraints programmatically. This sample project illustrates how to create constraints programmatically as well as via storyboard.
Make this variable "addControlProgrammatically" to NO, to load the controls directly from the storyboard.
The objective is to design a screen like the following with constraints both by storyboard and the code.