iPhoneX

1. When there is a bottom tab, the interface is automatically laid out

[_subView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(_subView.superview).with.insets(UIEdgeInsetsMake(0, 0, 0, 0));
        }];
        self.edgesForExtendedLayout = UIRectEdgeNone;//关键在于这一句

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325064241&siteId=291194637