Understanding Auto Layout 理解自动布局 Auto Layout dynamically calculates the size and position of all the views in your view hierarchy, based on constraints placed on those views. For example, you can constrain a button so that it is horizontally centered…
运行工程的时候会遇到 Safe Area Layout Guide before iOS9.0 这是因为xcode9 storyboard的设置里面多了 个 Safe Area Layout Guide,而这个特性只针对ios9 以后的版本,所以如果工程兼容ios9以前的话,加上这个选项就会报错,需要把这个选项去掉,如图…