1
This commit is contained in:
@@ -45,7 +45,8 @@
|
||||
// 该背景色会被 HWPanModal 用来设置容器的 _contentView 背景色
|
||||
// 参考 Pods/HWPanModal/Sources/View/PanModal/HWPanModalContainerView.m: adjustPanContainerBackgroundColor
|
||||
// 想要改变外层白色底(截图中 _contentView)的颜色,只需改这里即可
|
||||
self.backgroundColor = [UIColor colorWithHex:0xE8FFF4]; // 柔和的绿色
|
||||
// self.backgroundColor = [UIColor colorWithHex:0xE8FFF4]; // 柔和的绿色
|
||||
self.backgroundColor = [UIColor clearColor];
|
||||
// HWBackgroundConfig *config = [HWBackgroundConfig configWithBehavior:HWBackgroundBehaviorDefault];
|
||||
// config.backgroundAlpha = 0;
|
||||
// [self.hw_dimmedView reloadConfig:config];
|
||||
@@ -180,11 +181,11 @@
|
||||
|
||||
[self.leftBgImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.top.equalTo(self.secWhiteContentView);
|
||||
make.bottom.equalTo(self.secWhiteContentView);
|
||||
// make.bottom.equalTo(self.secWhiteContentView);
|
||||
}];
|
||||
[self.rightBgImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.top.equalTo(self.secWhiteContentView);
|
||||
make.bottom.equalTo(self.secWhiteContentView);
|
||||
// make.bottom.equalTo(self.secWhiteContentView);
|
||||
}];
|
||||
|
||||
|
||||
@@ -231,7 +232,7 @@
|
||||
[self.topBar addSubview:self.underlineImageView];
|
||||
|
||||
// Masonry 约束
|
||||
CGFloat topPadding = 0; // 与顶部小指示器留点空间
|
||||
CGFloat topPadding = 12; // 与顶部小指示器留点空间
|
||||
[self.topBar mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.equalTo(self.secWhiteContentView);
|
||||
make.top.equalTo(self.secWhiteContentView).offset(topPadding);
|
||||
@@ -259,14 +260,14 @@
|
||||
|
||||
[self.containerView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.equalTo(self.topBar.mas_bottom).offset(8);
|
||||
make.left.right.equalTo(self.secWhiteContentView).inset(16);
|
||||
make.left.right.equalTo(self.secWhiteContentView).inset(20);
|
||||
make.bottom.equalTo(self.secWhiteContentView);
|
||||
}];
|
||||
|
||||
[self.personImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
// 仍按页面整体的左右边距定位,保持与改层级前的视觉一致
|
||||
make.left.equalTo(self).offset(46);
|
||||
make.bottom.equalTo(self.topBar.mas_top).offset(20);
|
||||
make.bottom.equalTo(self.topBar.mas_top).offset(11);
|
||||
make.width.mas_equalTo(53);
|
||||
make.height.mas_equalTo(81);
|
||||
}];
|
||||
@@ -283,7 +284,7 @@
|
||||
#pragma mark - Action
|
||||
|
||||
- (void)onTapTopButton:(UIButton *)sender {
|
||||
[self switchToIndex:sender.tag animated:YES];
|
||||
[self switchToIndex:sender.tag animated:false];
|
||||
// [self hw_panModalSetNeedsLayoutUpdate];
|
||||
}
|
||||
|
||||
@@ -318,7 +319,6 @@
|
||||
// 添加目标
|
||||
// [self addChildViewController:target];
|
||||
[self.containerView addSubview:target.view];
|
||||
target.view.backgroundColor = [UIColor colorWithWhite:0.98 alpha:1];
|
||||
[target.view mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.top.right.equalTo(self.containerView);
|
||||
make.bottom.equalTo(self.containerView).offset(-KB_TABBAR_HEIGHT);
|
||||
|
||||
Reference in New Issue
Block a user