用stackview写布局,make.right.equalTo(self.scrollView.mas_right)不管用

LxxWLxx 2018-01-15 10:49:38
约束stackview右边框不管用,而且添加的imageview超出视图,
[self.verticalStackView mas_makeConstraints:^(MASConstraintMaker *make) {

make.top.equalTo(self.scrollView.mas_top).offset(10);
make.left.equalTo(self.scrollView.mas_left).offset(6);
make.right.equalTo(self.scrollView.mas_right).offset(6);
make.bottom.equalTo(self.scrollView);
}];
-(UIImageView*)imageView{

if (!_imageView) {
_imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"威控图片"]];
_imageView.contentMode = UIViewContentModeScaleAspectFill;
}
return _imageView;
}

求各位大佬帮忙!!!
...全文
572 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

29,028

社区成员

发帖
与我相关
我的任务
社区描述
主要讨论与iOS相关的软件和技术
社区管理员
  • iOS
  • 大熊猫侯佩
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧