Open iOSHCX opened 4 years ago
Example: redView.height = greenView.height = blueView.height
[greenView mas_makeConstraints:^(MASConstraintMaker *make) {
make.height.equalTo(redView.mas_height);
make.height.equalTo(blueView.mas_height);
}];
[redView mas_makeConstraints:^(MASConstraintMaker *make) {
make.height.equalTo(@[greenView, blueView]); // pass array of views
}];
[blueView mas_makeConstraints:^(MASConstraintMaker *make) {
make.height.equalTo(@[greenView.mas_height, redView.mas_height]); // pass array of attributes
}];
i want to konw In what scene will we use Array in equalTo()