修复了一些UI踢出的问题

This commit is contained in:
fengshuo
2022-06-21 15:50:07 +08:00
parent 65588d0cc3
commit a8d6812cc1
16 changed files with 68 additions and 47 deletions

View File

@@ -163,6 +163,7 @@
make.left.right.mas_equalTo(self);
make.height.mas_equalTo(108 * 2 + 20);
}];
[self.pageController mas_makeConstraints:^(MASConstraintMaker *make) {
make.height.mas_equalTo(10);
@@ -361,7 +362,7 @@
} else {
page = self.datasource.count / 8 + 1;
}
self.pageController.hidden = page <= 1;
self.pageController.hidden = page <= 1 || _segmentType == GiftSegmentType_WeekStar;
[self.pageController setNumberOfPages:page];
self.pageController.currentPage = 0;
[self.giftcollectionView reloadData];
@@ -418,7 +419,7 @@
_segmentStackView.axis = UILayoutConstraintAxisHorizontal;
_segmentStackView.distribution = UIStackViewDistributionFill;
_segmentStackView.alignment = UIStackViewAlignmentCenter;
_segmentStackView.spacing = 14;
_segmentStackView.spacing = 10;
_segmentStackView.backgroundColor = [UIColor clearColor];
}
return _segmentStackView;
@@ -576,7 +577,9 @@
- (UIView *)segmentPlaceView {
if (!_segmentPlaceView) {
_segmentPlaceView = [[UIView alloc] init];
_segmentPlaceView.backgroundColor = [UIColor clearColor];
_segmentPlaceView.backgroundColor = [UIColor redColor];
[_segmentPlaceView setContentCompressionResistancePriority:UILayoutPriorityDefaultLow forAxis:UILayoutConstraintAxisHorizontal];
[_segmentPlaceView setContentHuggingPriority:UILayoutPriorityDefaultLow forAxis:UILayoutConstraintAxisHorizontal];
}
return _segmentPlaceView;
}