派对动态UI调整

This commit is contained in:
chenshuanglin
2023-03-17 20:05:42 +08:00
parent 041d3270a1
commit fac1f25304
7 changed files with 10 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@@ -138,12 +138,12 @@
[self.sexBtn mas_makeConstraints:^(MASConstraintMaker *make) { [self.sexBtn mas_makeConstraints:^(MASConstraintMaker *make) {
make.height.mas_equalTo(15); make.height.mas_equalTo(15);
make.width.mas_lessThanOrEqualTo(32); make.width.mas_greaterThanOrEqualTo(32);
}]; }];
[self.constellationLabel mas_makeConstraints:^(MASConstraintMaker *make) { [self.constellationLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.height.mas_equalTo(15); make.height.mas_equalTo(15);
make.width.mas_lessThanOrEqualTo(38); make.width.mas_greaterThanOrEqualTo(38);
}]; }];
[self.signLabel mas_makeConstraints:^(MASConstraintMaker *make) { [self.signLabel mas_makeConstraints:^(MASConstraintMaker *make) {
@@ -381,6 +381,7 @@
_constellationLabel.backgroundColor = [ThemeColor colorWithHexString:@"#F6F7F9"]; _constellationLabel.backgroundColor = [ThemeColor colorWithHexString:@"#F6F7F9"];
_constellationLabel.layer.cornerRadius = 7.5; _constellationLabel.layer.cornerRadius = 7.5;
_constellationLabel.clipsToBounds = YES; _constellationLabel.clipsToBounds = YES;
_constellationLabel.textAlignment = NSTextAlignmentCenter;
} }
return _constellationLabel; return _constellationLabel;
} }

View File

@@ -55,7 +55,7 @@
[super viewDidLoad]; [super viewDidLoad];
[self initSubViews]; [self initSubViews];
[self initSubViewConstraints]; [self initSubViewConstraints];
[self refreshData:nil]; [self requestData:nil];
} }
#pragma mark - InitHttp #pragma mark - InitHttp

View File

@@ -109,13 +109,13 @@
#pragma mark - Private Method #pragma mark - Private Method
- (void)initSubViews { - (void)initSubViews {
self.view.backgroundColor = [UIColor clearColor];
[self.view addSubview:self.collectionView]; [self.view addSubview:self.collectionView];
} }
- (void)initSubViewConstraints { - (void)initSubViewConstraints {
[self.collectionView mas_makeConstraints:^(MASConstraintMaker *make) { [self.collectionView mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.mas_equalTo(self.view); make.left.right.bottom.mas_equalTo(self.view);
make.top.mas_equalTo(8);
}]; }];
} }

View File

@@ -68,6 +68,7 @@
} }
- (void)createUI { - (void)createUI {
self.view.backgroundColor = UIColor.whiteColor;
[self.view addSubview:self.collectionView]; [self.view addSubview:self.collectionView];
[self.collectionView mas_makeConstraints:^(MASConstraintMaker *make) { [self.collectionView mas_makeConstraints:^(MASConstraintMaker *make) {

View File

@@ -101,9 +101,9 @@
[self.titleView addSubview:self.dotView]; [self.titleView addSubview:self.dotView];
[self.publishBtn mas_makeConstraints:^(MASConstraintMaker *make) { [self.publishBtn mas_makeConstraints:^(MASConstraintMaker *make) {
make.size.mas_equalTo(CGSizeMake(45, 45)); make.size.mas_equalTo(CGSizeMake(51, 51));
make.bottom.mas_equalTo(self.view).offset(-kSafeAreaBottomHeight - 30); make.bottom.mas_equalTo(self.view).offset(-58);
make.right.mas_equalTo(self.view).offset(-15); make.right.mas_equalTo(self.view).offset(-10);
}]; }];
[self.messageButton mas_makeConstraints:^(MASConstraintMaker *make) { [self.messageButton mas_makeConstraints:^(MASConstraintMaker *make) {