Safe Area of Xcode 9

来源:互联网 发布:苹果电脑视频编辑软件 编辑:程序博客网 时间:2024/05/17 07:18
According to Apple, Xcode 9 - Release note 

Interface Builder uses UIView.safeAreaLayoutGuide as a replacement for the deprecated Top and Bottom layout guides in UIViewController. To use the new safe area, select Safe Area Layout Guides in the File inspector for the view controller, and then add constraints between your content and the new safe area anchors. This prevents your content from being obscured by top and bottom bars, and by the overscan region on tvOS. Constraints to the safe area are converted to Top and Bottom when deploying to earlier versions of iOS.



原创粉丝点击