"ios" [callButton mas_makeConstraints:^(MASConstraintMaker *make) {\n make.top.equalTo(weakSelf.infoView.mas_bottom).mas_offset(10);\n make.right.mas_equalTo(weakSelf.view).offset(-wid(15));\n make.width.height.mas_equalTo(wid(45));\n make.bottom.mas_equalTo(weakSelf.chat.inputController.view).offset(wid(15));\n// make.bottom.mas_equalTo(weakSelf.chat.inputController.view.y-wid(28.33));\n }];\n设置距离weakSelf.chat.inputController.view的y上面15的高度内容:将make.bottom的约束改为make.bottom.equalTo(weakSelf.chat.inputController.view.mas_top).offset(-wid(15))。这将设置距离weakSelf.chat.inputController.view的上方15的高度。

iOS UI 布局:使用 Masonry 设置控件距离其他控件上方的距离

原文地址: https://www.cveoy.top/t/topic/qff9 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录