草庐IT

rightFullConstraint

全部标签

ios - 在 iPhone X 上横向使用最大屏幕

我目前正在像这样设置WebView的布局约束:UIView*theView=self.view;UILayoutGuide*theGuide=theView.safeAreaLayoutGuide;inWebView.translatesAutoresizingMaskIntoConstraints=NO;[theView.topAnchorconstraintEqualToAnchor:inWebView.topAnchor].active=YES;[theGuide.leadingAnchorconstraintEqualToAnchor:inWebView.leadingAnch