修改暗黑模式
This commit is contained in:
@@ -24,6 +24,10 @@
|
||||
TabbarViewController *vc = [[TabbarViewController alloc] init];
|
||||
BaseNavigationController *bnc = [[BaseNavigationController alloc] initWithRootViewController:vc];
|
||||
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
|
||||
///禁用暗黑
|
||||
if (@available(iOS 13.0, *)) {
|
||||
self.window.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
|
||||
}
|
||||
self.window.rootViewController = bnc;
|
||||
[self.window makeKeyAndVisible];
|
||||
///设置广告页
|
||||
|
@@ -22,6 +22,8 @@
|
||||
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
|
||||
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
|
||||
if (self) {
|
||||
self.backgroundColor = UIColor.clearColor;
|
||||
self.contentView.backgroundColor = UIColor.clearColor;
|
||||
self.selectionStyle = UITableViewCellSelectionStyleNone;
|
||||
[self.contentView addSubview:self.backView];
|
||||
[self.contentView addSubview:self.titleLabel];
|
||||
|
@@ -104,6 +104,7 @@
|
||||
_tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
|
||||
_tableView.delegate = self;
|
||||
_tableView.dataSource = self;
|
||||
_tableView.backgroundColor = [UIColor clearColor];
|
||||
_tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
|
||||
_tableView.rowHeight = 48;
|
||||
_tableView.scrollEnabled = NO;
|
||||
|
Reference in New Issue
Block a user