Skip to content

Commit b5472d3

Browse files
committed
坐标调整
1 parent 1570bb1 commit b5472d3

4 files changed

Lines changed: 9 additions & 7 deletions

File tree

Binary file not shown.
Binary file not shown.

Coding_iOS/LaunchScreen.xib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<color key="backgroundColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
2626
<constraints>
2727
<constraint firstItem="dTn-fW-b2N" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="60" id="M8T-SC-Ui6"/>
28-
<constraint firstAttribute="bottom" secondItem="dTn-fW-b2N" secondAttribute="bottom" constant="90" id="eW7-2t-dub"/>
28+
<constraint firstAttribute="bottom" secondItem="dTn-fW-b2N" secondAttribute="bottom" constant="50" id="eW7-2t-dub"/>
2929
<constraint firstAttribute="trailing" secondItem="dTn-fW-b2N" secondAttribute="trailing" constant="60" id="xha-PV-K3l"/>
3030
</constraints>
3131
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>

Coding_iOS/Views/EaseStartView.m

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,33 +28,35 @@ - (instancetype)initWithBgImage:(UIImage *)bgImage logoIcon:(UIImage *)logoIcon
2828
//add custom code
2929
self.backgroundColor = [UIColor blackColor];
3030
UIColor *blackColor = [UIColor blackColor];
31-
[self addGradientLayerWithColors:@[(id)[blackColor colorWithAlphaComponent:0.0].CGColor, (id)[blackColor colorWithAlphaComponent:0.7].CGColor] locations:nil startPoint:CGPointMake(0.5, 0.6) endPoint:CGPointMake(0.5, 1.0)];
3231

3332
_bgImageView = [[UIImageView alloc] initWithFrame:kScreen_Bounds];
3433
_bgImageView.contentMode = UIViewContentModeScaleAspectFill;
3534
_bgImageView.alpha = 0.0;
3635
[self addSubview:_bgImageView];
36+
37+
[self addGradientLayerWithColors:@[(id)[blackColor colorWithAlphaComponent:0.0].CGColor, (id)[blackColor colorWithAlphaComponent:0.9].CGColor] locations:nil startPoint:CGPointMake(0.5, 0.6) endPoint:CGPointMake(0.5, 1.0)];
38+
3739
_logoIconView = [[UIImageView alloc] init];
3840
_logoIconView.contentMode = UIViewContentModeScaleAspectFit;
3941
_logoIconView.alpha = 1.0;
4042
[self addSubview:_logoIconView];
4143
_descriptionStrLabel = [[UILabel alloc] init];
42-
_descriptionStrLabel.font = [UIFont systemFontOfSize:14];
43-
_descriptionStrLabel.textColor = [UIColor colorWithWhite:1.0 alpha:0.85];
44+
_descriptionStrLabel.font = [UIFont systemFontOfSize:10];
45+
_descriptionStrLabel.textColor = [UIColor colorWithWhite:1.0 alpha:0.5];
4446
_descriptionStrLabel.textAlignment = NSTextAlignmentCenter;
4547
_descriptionStrLabel.alpha = 0.0;
4648
[self addSubview:_descriptionStrLabel];
4749

4850
[_descriptionStrLabel mas_makeConstraints:^(MASConstraintMaker *make) {
4951
make.centerX.equalTo(@[self, _logoIconView]);
50-
make.height.mas_equalTo(20);
51-
make.bottom.equalTo(self.mas_bottom).offset(-30);
52+
make.height.mas_equalTo(10);
53+
make.bottom.equalTo(self.mas_bottom).offset(-15);
5254
make.left.equalTo(self.mas_left).offset(20);
5355
make.right.equalTo(self.mas_right).offset(-20);
5456
}];
5557

5658
[_logoIconView mas_makeConstraints:^(MASConstraintMaker *make) {
57-
make.bottom.equalTo(_descriptionStrLabel.mas_top).offset(-40);
59+
make.bottom.equalTo(_descriptionStrLabel.mas_top).offset(-25);
5860
make.size.mas_lessThanOrEqualTo(CGSizeMake(255, 60));
5961
make.left.equalTo(self.mas_left).offset(60);
6062
make.right.equalTo(self.mas_right).offset(-60);

0 commit comments

Comments
 (0)