Commit 7c0ddad3fade6f2b0b0f97c3fc4216a8cec4c189

Authored by zhangxiaowen
1 parent 2b5e2a0a

no message

CNLiveSettingModule/Classes/BackgroundImage/CNLiveBackgroundImageController.m
@@ -34,7 +34,6 @@ @@ -34,7 +34,6 @@
34 34
35 @implementation CNLiveBackgroundImageController 35 @implementation CNLiveBackgroundImageController
36 static const NSInteger timeValue = 1.5; 36 static const NSInteger timeValue = 1.5;
37 -  
38 #pragma mark - 加载数据 37 #pragma mark - 加载数据
39 - (void)loadData { 38 - (void)loadData {
40 NSArray *data = @[ 39 NSArray *data = @[
@@ -68,7 +67,7 @@ static const NSInteger timeValue = 1.5; @@ -68,7 +67,7 @@ static const NSInteger timeValue = 1.5;
68 67
69 - (void)viewDidLoad { 68 - (void)viewDidLoad {
70 [super viewDidLoad]; 69 [super viewDidLoad];
71 - self.view.backgroundColor = [UIColor whiteColor]; 70 + self.view.backgroundColor = [UIColor colorWithRed:242/255.0 green:242/255.0 blue:242/255.0 alpha:1.0];
72 if (@available(iOS 11, *)) { 71 if (@available(iOS 11, *)) {
73 self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; 72 self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
74 } 73 }
@@ -81,11 +80,7 @@ static const NSInteger timeValue = 1.5; @@ -81,11 +80,7 @@ static const NSInteger timeValue = 1.5;
81 80
82 } 81 }
83 82
84 -- (void)dealloc {  
85 -  
86 -  
87 -}  
88 - 83 +#pragma mark - UI
89 - (void)createSubViews { 84 - (void)createSubViews {
90 [self.view addSubview:self.navigationBar]; 85 [self.view addSubview:self.navigationBar];
91 [self.view addSubview:self.tableView]; 86 [self.view addSubview:self.tableView];
@@ -176,7 +171,7 @@ static const NSInteger timeValue = 1.5; @@ -176,7 +171,7 @@ static const NSInteger timeValue = 1.5;
176 171
177 - (UITableView *)tableView{ 172 - (UITableView *)tableView{
178 if(!_tableView){ 173 if(!_tableView){
179 - _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, NavigationContentTop, SCREEN_WIDTH, SCREEN_HEIGHT-NavigationContentTop-50) style:UITableViewStylePlain]; 174 + _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, NavigationContentTop, SCREEN_WIDTH, 150) style:UITableViewStylePlain];
180 _tableView.delegate = self; 175 _tableView.delegate = self;
181 _tableView.dataSource = self; 176 _tableView.dataSource = self;
182 _tableView.bounces = NO; 177 _tableView.bounces = NO;
@@ -193,7 +188,7 @@ static const NSInteger timeValue = 1.5; @@ -193,7 +188,7 @@ static const NSInteger timeValue = 1.5;
193 - (UIButton *)setting{ 188 - (UIButton *)setting{
194 if(!_setting){ 189 if(!_setting){
195 _setting = [UIButton buttonWithType:UIButtonTypeCustom]; 190 _setting = [UIButton buttonWithType:UIButtonTypeCustom];
196 - _setting.frame = CGRectMake(0, SCREEN_HEIGHT-SafeAreaInsetsConstantForDeviceWithNotch.bottom-50, SCREEN_WIDTH, 50); 191 + _setting.frame = CGRectMake(0, NavigationContentTop+150, SCREEN_WIDTH, 50);
197 _setting.backgroundColor = [UIColor whiteColor]; 192 _setting.backgroundColor = [UIColor whiteColor];
198 _setting.titleLabel.font = [UIFont systemFontOfSize:16.0]; 193 _setting.titleLabel.font = [UIFont systemFontOfSize:16.0];
199 [_setting setTitleColor:[UIColor blackColor] forState:UIControlStateNormal]; 194 [_setting setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];