1
This commit is contained in:
@@ -38,6 +38,7 @@ typedef NS_ENUM(NSInteger, KBGuideItemType) {
|
||||
|
||||
/// 最近一次已知的键盘高度(用于初次展示蒙层时的 GIF 位置计算)
|
||||
@property (nonatomic, assign) CGFloat kb_currentKeyboardHeight;
|
||||
@property (nonatomic, strong) UIImageView *bgImageView; // 全屏背景图
|
||||
|
||||
@end
|
||||
|
||||
@@ -45,7 +46,15 @@ typedef NS_ENUM(NSInteger, KBGuideItemType) {
|
||||
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
self.view.backgroundColor = [UIColor colorWithWhite:0.96 alpha:1.0];
|
||||
// self.view.backgroundColor = [UIColor colorWithWhite:0.96 alpha:1.0];
|
||||
self.view.backgroundColor = UIColor.clearColor;
|
||||
self.kb_navView.backgroundColor = [UIColor clearColor];
|
||||
self.bgImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"my_bg_icon"]];
|
||||
self.bgImageView.contentMode = UIViewContentModeScaleAspectFill;
|
||||
[self.view insertSubview:self.bgImageView belowSubview:self.kb_navView];
|
||||
[self.bgImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.edges.equalTo(self.view);
|
||||
}];
|
||||
|
||||
[self.view addSubview:self.tableView];
|
||||
[self.view addSubview:self.inputBar];
|
||||
@@ -421,7 +430,7 @@ typedef NS_ENUM(NSInteger, KBGuideItemType) {
|
||||
_tableView.delegate = self;
|
||||
_tableView.dataSource = self;
|
||||
_tableView.separatorStyle = UITableViewCellSeparatorStyleNone; // 无分割线
|
||||
_tableView.backgroundColor = [UIColor colorWithWhite:0.96 alpha:1.0];
|
||||
_tableView.backgroundColor = [UIColor clearColor];
|
||||
_tableView.rowHeight = UITableViewAutomaticDimension;
|
||||
_tableView.estimatedRowHeight = 120; // 开启自适应高度
|
||||
_tableView.contentInset = UIEdgeInsetsMake(0, 0, 52 + KB_SafeAreaBottom(), 0);
|
||||
|
||||
Reference in New Issue
Block a user