Setting the background color on UITableViewHeaderFooterView has been deprecated. Please use contentV
来源:互联网 发布:数据帧长度 原因 编辑:程序博客网 时间:2024/05/16 13:47
提示:
Setting the background color on UITableViewHeaderFooterView has been deprecated. Please use contentView.backgroundColor instead.
当时设置tableView组头视图的颜色时写法如下
- (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section{ view.backgroundColor = [UIColor lightGrayColor];}
这种设置组头视图背景颜色的方法已经被摒弃了
正确写法:
- (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section{ UITableViewHeaderFooterView *headerView=(UITableViewHeaderFooterView *)view; [headerView.backgroundView setBackgroundColor:[UIColor lightGrayColor]];}
阅读全文
0 0
- Setting the background color on UITableViewHeaderFooterView has been deprecated. Please use contentV
- 警告 Setting the background color on UITableViewHeaderFooterView has been deprecated
- relying on packaging to define the extension of the main artifact has been deprecated and is schedul
- ActionContextCleanUp <<< is deprecated! Please use the new filters警告
- >>> FilterDispatcher <<< is deprecated! Please use the new filters!
- >>> FilterDispatcher <<< is deprecated! Please use the new filters!
- >>> FilterDispatcher <<< is deprecated! Please use the new filters!
- FilterDispatcher <<< is deprecated! Please use the new filters!
- >>> FilterDispatcher <<< is deprecated! Please use the new filters!
- >>> FilterDispatcher <<< is deprecated! Please use the new filters!
- FilterDispatcher <<< is deprecated! Please use the new filters!
- Deprecated: main(): The Mongo class is deprecated, please use the MongoClient class in
- the cfree installation has been damaged,please restall it(err3)
- Setting the background image on a webpart title
- Set the background color
- xxxxx has been explicitly marked deprecated here
- jQuery 的 event.returnValue is deprecated. Please use the standard event.preventDefault() instead. 警告
- [Deprecated( "please use panBy and panTo APIs" )]
- tensorflow实现cirfar10
- mySql新建表
- OSI七层模型与TCP/IP五层模型——以太网基础01
- Android中调用finish()后不能立即执行onDestroy()的BUG
- 【安卓学习之变革】 Android 学习-- 新语言Kotlin
- Setting the background color on UITableViewHeaderFooterView has been deprecated. Please use contentV
- Kotlin 踩坑日记 总目录
- 安装jdk
- Windows2008R2 IIS7.5伪静态URL传递中文404
- c++实验6-数组合并
- 网络摘记
- XML document from ServletContext resource .xml
- Google 官方应用架构的最佳实践指南
- js时间戳||php时间戳