您好,欢迎来到化拓教育网。
搜索
您的当前位置:首页mastory项目使用:

mastory项目使用:

来源:化拓教育网

1.二等分:

UIView *vSales =[[UIView alloc]init];

[cell addSubview:vSales];

UIView *vIncompleteOrder =[[UIView alloc]init];

[cell addSubview:vIncompleteOrder];

[vSales mas_makeConstraints:^(MASConstraintMaker *make){

make.top.mas_equalTo(lbWithdrawMoney.mas_bottom).with.offset(20);

make.left.bottom.mas_equalTo(cell);

make.right.mas_equalTo(vIncompleteOrder.mas_left);

make.width.mas_equalTo(vIncompleteOrder);

}];

[vIncompleteOrder mas_makeConstraints:^(MASConstraintMaker *make){

make.top.mas_equalTo(lbWithdrawMoney.mas_bottom).with.offset(20);

make.left.mas_equalTo(vSales.mas_right);

make.right.bottom.mas_equalTo(cell);

make.width.mas_equalTo(vSales);

}];

1.三等分:

UIView *vToday =[[UIView alloc]init];

vToday.backgroundColor =[UIColor redColor];

[cell addSubview:vToday];

UIView *vSevenDay =[[UIView alloc]init];

vSevenDay.backgroundColor =[UIColor greenColor];

[cell addSubview:vSevenDay];

UIView *vCumulativeOrder =[[UIView alloc]init];

vCumulativeOrder.backgroundColor =[UIColor yellowColor];

[cell addSubview:vCumulativeOrder];

[vToday mas_makeConstraints:^(MASConstraintMaker *make){

make.top.mas_equalTo(vLine.mas_bottom);

make.left.bottom.mas_equalTo(cell);

make.width.mas_equalTo(cell.mas_width).dividedBy(3);

}];

[vSevenDay mas_makeConstraints:^(MASConstraintMaker *make){

make.top.bottom.width.mas_equalTo(vToday);

make.centerX.mas_equalTo(cell);

}];

[vCumulativeOrder mas_makeConstraints:^(MASConstraintMaker *make){

make.top.bottom.width.mas_equalTo(vToday);

make.right.mas_equalTo(cell);

}];

Copyright © 2019- huatuo9.cn 版权所有 赣ICP备2023008801号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务