开机图片不显示
brand assets 添加图片之后开机图片不显示,这个时候删掉APP 重新装一次就好了
iphone x 上下黑块
iPhone x 上下黑块 加入iPhone x 的启动图即可(1125*2436)
m文件找不到
m文件找不到 compile Scources add一下
headView顺tableview滚动
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
CGFloat sectionHeaderHeight = 60;//sectionHeadView 的高度
if (scrollView.contentOffset.y<=sectionHeaderHeight&&scrollView.contentOffset.y>=0) {
scrollView.contentInset = UIEdgeInsetsMake(-scrollView.contentOffset.y, 0, 0, 0);
} else if (scrollView.contentOffset.y>=sectionHeaderHeight) {
scrollView.contentInset = UIEdgeInsetsMake(-sectionHeaderHeight, 0, 0, 0);
}
}
UILabel *lab1 = [UILabel new];
lab1.text = @"123456789";
lab1.font = Font(12);
lab1.textColor = [UIColor redColor];
lab1.layer.masksToBounds = YES;
[lab1.layer setCornerRadius:5];
lab1.layer.borderColor = [UIColor grayColor].CGColor;
lab1.layer.borderWidth = 1;
[self.view addSubview:lab1];
[lab1 mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(self.view).offset(20);
make.top.equalTo(_bodyTopView.mas_bottom).offset(30);
make.height.mas_equalTo(20);
}];