fix color

This commit is contained in:
2025-11-10 19:55:50 +08:00
parent 3eb3a86376
commit a007a77db9
2 changed files with 13 additions and 3 deletions

View File

@@ -15,13 +15,21 @@
@property (nonatomic, strong) BaseTableView *tableView; //
@property (nonatomic, strong) KBMyHeaderView *header; //
@property (nonatomic, strong) NSArray<NSArray<NSDictionary *> *> *data; //
@property (nonatomic, strong) UIImageView *bgImageView; //
@end
@implementation MyVC
- (void)viewDidLoad {
[super viewDidLoad];
self.view.backgroundColor = [UIColor colorWithHex:0xF5F7FB];
//
self.view.backgroundColor = UIColor.clearColor;
self.bgImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"my_bg_icon"]];
self.bgImageView.contentMode = UIViewContentModeScaleAspectFill;
[self.view addSubview:self.bgImageView];
[self.bgImageView mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(self.view);
}];
// title + SF Symbols +
self.data = @[
@@ -40,6 +48,7 @@
// tableHeaderView frame
self.header = [[KBMyHeaderView alloc] initWithFrame:CGRectMake(0, 0, KB_SCREEN_WIDTH, 357)];
self.header.backgroundColor = UIColor.clearColor; //
self.tableView.tableHeaderView = self.header;
}
@@ -97,7 +106,8 @@
- (BaseTableView *)tableView {
if (!_tableView) {
_tableView = [[BaseTableView alloc] initWithFrame:CGRectZero style:UITableViewStyleGrouped];
_tableView.backgroundColor = [UIColor colorWithHex:0xF5F7FB];
_tableView.backgroundColor = UIColor.clearColor; //
_tableView.opaque = NO;
_tableView.delegate = self;
_tableView.dataSource = self;
_tableView.separatorStyle = UITableViewCellSeparatorStyleNone; // 线