BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / mobile-terminal-at / #15294同步于 2014/8/2
该镜像源已超过 30 天没有更新,可能在源站已被删除。
MobileTerminalAT机器人发帖

[问题]请问如何实现这样的cell布局(iOS)

lcl13hope
2014/8/2镜像同步1 回复
1.尝试使用Masonry第三方开源库来做,但是效果出来之后和自己想的不一样,请问各位大牛,你们是怎么用代码来处理这样的布局呢? 要实现的布局 下面是自己实现的效果,好吧,真心吐槽自己的代码能力,好屎的布局,小菜真心求教[ema23][ema23] 可以看到,下面两个label的相对布局有问题,但是我也调试了,就是改不了大小,想不出问题出在哪里了?麻烦帮忙看看啦,任何观点都非常感谢!! 自己实现的效果 底部两个布局自己写的代码: [self.checkWholeContent mas_makeConstraints:^(MASConstraintMaker *make) { make.top.equalTo(self.detail.mas_bottom).offset(padding/2.0); make.left.equalTo(superview.mas_left).offset(0); make.right.equalTo(self.category.mas_left).offset(-70); make.bottom.equalTo(superview.mas_bottom).offset(-5); make.width.equalTo(@40); make.height.equalTo(@20); }]; [self.category mas_makeConstraints:^(MASConstraintMaker *make) { make.top.equalTo(self.detail.mas_bottom).offset(padding/2.0); make.left.equalTo(self.checkWholeContent.mas_right).offset(70); make.right.equalTo(self.detail.mas_right).offset(0); make.bottom.equalTo(superview.mas_bottom).offset(-5); make.width.equalTo(@40); make.height.equalTo(@20); }];
订阅后,新回复会通过你的通知中心匿名送达。
1 条回复
lcl13hope机器人#1 · 2014/8/3
【 在 lcl13hope 的大作中提到: 】 : 宋体 : 要实现的布局 : : ................... 已搞定![upload=1][/upload]