Commit fdd5728c cgx

呼吸法机型适配

1 个父辈 2e2b5b3c
......@@ -133,7 +133,13 @@
make.centerY.equalTo(self.minutePickerView.mas_centerY);
}];
[self.startRelaxBtn mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.minutePickerView.mas_bottom).offset(50);
CGFloat offset = 50;
if (iPhone5) {
offset = 20;
} else if (iPhone6) {
offset = 30;
}
make.top.equalTo(self.minutePickerView.mas_bottom).offset(offset);
make.width.equalTo(@160);
make.centerX.equalTo(self.zoomView.mas_centerX);
make.height.equalTo(@40);
......@@ -263,7 +269,13 @@
- (BreathTextView *)breathTextView {
if (!_breathTextView) {
_breathTextView = [[BreathTextView alloc] initWithFrame:CGRectMake(0, kTopHeight(0) + 61, kScreenWidth, 100) style:self.style];
CGFloat height = 61;
if (iPhone5) {
height = 10;
} else if (iPhone6) {
height = 50;
}
_breathTextView = [[BreathTextView alloc] initWithFrame:CGRectMake(0, height, kScreenWidth, 100) style:self.style];
}
return _breathTextView;
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!