Skip to content

Instantly share code, notes, and snippets.

@zhongge
Created December 14, 2014 10:54
Show Gist options
  • Save zhongge/30250ac5083471d481a7 to your computer and use it in GitHub Desktop.
Save zhongge/30250ac5083471d481a7 to your computer and use it in GitHub Desktop.
There are two ways
1. Use autolayout constraint in storyboard or xib.
When use autolayout contraints, you must layout of element of UIView in viewDidLayout of UIViewController.
2. In the code, use setFrame:.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment