[self.bgView addSubview:self.progressImageView]; [self.progressImageView mas_makeConstraints:^(MASConstraintMaker *make) { make.left.mas_equalTo(self.nameLabel.mas_right).with.offset(10); make.centerY.mas_equalTo(self.iconImageView); make.width.mas_equalTo(self.progressBgView).multipliedBy(1); make.height.mas_equalTo(3); }];
使用 multipliedBy 设置一个控件的宽是另一个宽的倍数
时间: 2024-11-02 14:14:09