iOS_新版iOS11 UITbleView适配的一些问题及解决方法
来源:互联网 发布:58同城网络兼职 编辑:程序博客网 时间:2024/06/06 03:30
网上的资料很多就不赘述,本文纯粹是做个笔记方便日后开发查询。
// tableView 偏移20/64适配
if (@available(iOS 11.0, *)) {
self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;//UIScrollView也适用
}else {
self.automaticallyAdjustsScrollViewInsets = NO;
}
// tableView 如果是Gruop类型的话,section之间的间距变宽,执行返回高度的同时还需要执行return UIView的代理
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
return 10;
}
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
return 0.1;
}
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
return [[UIView alloc] init];
}
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section {
return [[UIView alloc] init];
}
阅读全文
0 2
- iOS_新版iOS11 UITbleView适配的一些问题及解决方法
- iOS11 UITbleView适配的一些问题及解决方法
- iOS11遇到的坑及解决方法
- 有关iOS11的适配问题
- ios11使用tableView的一些问题
- iOS之旅--iOS11的一些适配工作
- iOS开发-关于iOS11适配的一些坑
- IOS11界面适配问题
- iOS11版本适配问题
- iOS11版本适配问题
- 一些问题及解决方法
- 有关iOS11和iPhoneX的适配问题
- iOS11一些坐标原点问题
- VC2005使用的一些问题及解决方法
- VC2005使用的一些问题及解决方法
- Memcache 的一些问题及解决方法
- iOS11NavigationItem偏移,iOS11适配问题,iOS11导航栏返回偏移,iOS11BarButtonItem偏移,Xcode9遇见的问题
- ios11适配的坑
- hdu 5687 裸字典树
- 剑指offer系列一:从尾到头打印链表
- Effective C++ 55个条款概述
- Serverless 风格微服务的持续交付(上):架构案例
- onresume 跳转时出现控件为空 是因为页面没有完全初始化
- iOS_新版iOS11 UITbleView适配的一些问题及解决方法
- 【ccf-201612-1】中间数
- 极乐技术周报(第二十六期)
- 海思3519编译opencv320库
- 线程池
- 基于vue-cli的vue项目之vuex的使用3-------action异步传参
- Spark SQL和Spark Thrift Server安装部署
- Pycharm2017 注册失败解决
- ios 获取导航栏、状态栏的高度