Commit 7c0ddad3fade6f2b0b0f97c3fc4216a8cec4c189
1 parent
2b5e2a0a
no message
Showing
1 changed file
with
4 additions
and
9 deletions
CNLiveSettingModule/Classes/BackgroundImage/CNLiveBackgroundImageController.m
| ... | ... | @@ -34,7 +34,6 @@ |
| 34 | 34 | |
| 35 | 35 | @implementation CNLiveBackgroundImageController |
| 36 | 36 | static const NSInteger timeValue = 1.5; |
| 37 | - | |
| 38 | 37 | #pragma mark - 加载数据 |
| 39 | 38 | - (void)loadData { |
| 40 | 39 | NSArray *data = @[ |
| ... | ... | @@ -68,7 +67,7 @@ static const NSInteger timeValue = 1.5; |
| 68 | 67 | |
| 69 | 68 | - (void)viewDidLoad { |
| 70 | 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 | 71 | if (@available(iOS 11, *)) { |
| 73 | 72 | self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; |
| 74 | 73 | } |
| ... | ... | @@ -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 | 84 | - (void)createSubViews { |
| 90 | 85 | [self.view addSubview:self.navigationBar]; |
| 91 | 86 | [self.view addSubview:self.tableView]; |
| ... | ... | @@ -176,7 +171,7 @@ static const NSInteger timeValue = 1.5; |
| 176 | 171 | |
| 177 | 172 | - (UITableView *)tableView{ |
| 178 | 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 | 175 | _tableView.delegate = self; |
| 181 | 176 | _tableView.dataSource = self; |
| 182 | 177 | _tableView.bounces = NO; |
| ... | ... | @@ -193,7 +188,7 @@ static const NSInteger timeValue = 1.5; |
| 193 | 188 | - (UIButton *)setting{ |
| 194 | 189 | if(!_setting){ |
| 195 | 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 | 192 | _setting.backgroundColor = [UIColor whiteColor]; |
| 198 | 193 | _setting.titleLabel.font = [UIFont systemFontOfSize:16.0]; |
| 199 | 194 | [_setting setTitleColor:[UIColor blackColor] forState:UIControlStateNormal]; | ... | ... |