扫码关注官方订阅号
系统报的这个警告: Setting the background color on UITableViewHeaderFooterView has been deprecated. Please use contentView.backgroundColor instead.
学习是最好的投资!
可以给这个UITableViewHeaderFooterView设置一个backgroundView 比如: var backgroundView:UIView = UIView() backgroundView.backgroundColor = UIColor.whiteColor() self.backgroundView = backgroundView
UITableView的代理方法中,
(void)tableView:(UITableView )tableView willDisplayFooterView:(UIView )view forSection:(NSInteger)section {
view.tintColor = [UIColor whiteColor];
}
这样就行了
http://stackoverflow.com/ques...
要是是Xib 创建的话 xib source 打开 去掉里面 backgroundcolor 这一行
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
可以给这个UITableViewHeaderFooterView设置一个backgroundView
比如:
var backgroundView:UIView = UIView()
backgroundView.backgroundColor = UIColor.whiteColor()
self.backgroundView = backgroundView
UITableView的代理方法中,
(void)tableView:(UITableView )tableView willDisplayFooterView:(UIView )view forSection:(NSInteger)section {
}
这样就行了
http://stackoverflow.com/ques...
要是是Xib 创建的话 xib source 打开 去掉里面 backgroundcolor 这一行