UITableview group模式 出现的问题
2015-06-18 19:07
567 查看
在ios7下,创建tableview分组模式时,顶部会出现一小块空白,用了:
以及:
均无法实现,最后找到办法解决,是写入代码:
group模式时,self.view的背景是灰色,且用self.view.backgroundColor = [UIColor whiteColor];不起作用
则代码为:tableView.backgroundColor = [UIColor clearColor];就可以实现了
self.edgesForExtendedLayout = UIRectEdgeNone
以及:
self.automaticallyAdjustsScrollViewInsets=NO
均无法实现,最后找到办法解决,是写入代码:
_infoTableView.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, _infoTableView.bounds.size.width, 0.01f)];
group模式时,self.view的背景是灰色,且用self.view.backgroundColor = [UIColor whiteColor];不起作用
则代码为:tableView.backgroundColor = [UIColor clearColor];就可以实现了
相关文章推荐
- JSP URI/URL - How to get the request URI, URL, and Context from a JSP
- JAVa JFinal + EazyUI =Grid例子
- UIAlertController的使用示例
- 智能指针(smart pointer)(2):unique_ptr
- mysql的唯一索引UNIQUE
- Android编译错误: The project cannot be built until build path errors are resolved
- iOS 引用当前显示的UIAlertView
- Android UI之自定义——最简单的仿QQ音乐歌词颜色渐变
- 解决骨骼动画与ngui层级关系
- Solr: Synonym Query
- [Leetcode]Implement Stack using Queues
- Answer My Questions
- xml:Invalid byte 2 of 2-byte UTF-8 sequence
- [LintCode] Longest Increasing Continuous subsequence II
- UIResponder类学习
- break和continue的区别
- 通过实现一个 TableView 来理解 iOS UI 编程
- easyui进度条函数使用例子
- Guid.NewGuid().ToString()生成唯一码js
- UILable文字中间添加删除线