cntrump
cntrump
Example: redView.height = greenView.height = blueView.height ```objc [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) {...
Try this PR please. https://github.com/SnapKit/Masonry/pull/594
Works for me: ```objc UIImageView *iconView = [[UIImageView alloc] init]; iconView.backgroundColor = UIColor.orangeColor; [self.contentView addSubview:iconView]; [iconView mas_makeConstraints:^(MASConstraintMaker *make) { make.top.mas_equalTo(7); make.bottom.mas_equalTo(-7).priorityHigh(); // look this make.size.mas_equalTo(70); }]; ```
https://github.com/SnapKit/Masonry/pull/594 ```objc UILayoutGuide *contentLayoutGuide = [[UILayoutGuide alloc] init]; [self.view addLayoutGuide:contentLayoutGuide]; [contentLayoutGuide mas_makeConstraints:^(id _Nonnull make) { make.center.mas_equalTo(0); make.width.mas_equalTo(self.view); }]; NSArray *colors = @[ UIColor.redColor, UIColor.yellowColor, UIColor.blueColor, UIColor.greenColor ]; UIView *prev =...
Take a look https://github.com/SnapKit/Masonry/pull/594
系统会进行像素对齐。具体计算方式:`v = ceil(scale * x) / scale` , `scale` 是屏幕缩放系数。 在 2x 屏幕下 `ceil(2 * 0.8) / 2 = 1` 在 3x 屏幕下 `ceil(3 * 0.8) / 3 = 1`...
> `make.height.mas_offset(0.5);` > 0.5 绘制的实际高度不一: 0.67 或 0.33 > 对float支持有误差,怎么解决? 0.5pt 可以当做 1px 来处理,设置为 `1 / UIScreen.main.scale`
Fixed in my PR: https://github.com/ReactiveCocoa/ReactiveObjC/pull/178
用 AudioFileReadPacketData 替换掉上面这个过时的方法吧。
`Heading` color applied to markdown's codeblock. I make a fork and set `Heading` to #D7737D and SFMono-Medium is better than SFMono-Regular 😁