表格
2015-06-30 16:19
211 查看
设置列表滚动位置
[myTableView scrollToRowAtIndexPath:[NSIndexPathindexPathForRow:0
inSection:0] atScrollPosition:UITableViewScrollPositionBottom animated:NO];
[self
resignFirstResponder];
在viewWillAppear里面添加如下代码:
//分组列表头部空白处理
CGRect frame = myTableView.tableHeaderView.frame;
frame.size.height = 0.1;
UIView *headerView = [[UIView alloc] initWithFrame:frame];
[myTableView setTableHeaderView:headerView];
//解决cell重用
while ([cell.contentView.subviews lastObject] !=
nil) {
[(UIView *)[cell.contentView.subviews lastObject] removeFromSuperview];
}
相关文章推荐
- 图
- 如何写好博客
- android 三级菜单 BaseExpandableListAdapter
- C#_读取EXCEL文件的三种经典方法
- Eclipse 打不开
- 用html自制map集合
- 史上最全的CSS hack方式一览
- JQuery常用的几种显示隐藏的方法
- 卷积神经网络CNN
- java内存泄漏的定位与分析
- The type android.support.v4.app.TaskStackBuilder$SupportParentable cannot be resolved. It is indirec
- Java多线程编程总结
- 【转】MySQL数据类型
- oracle求时间差的常用函数
- 11gR2 grid安装最后报错[INS-20802] Oracle Cluster Verification Utility failed
- swt动态图表实例
- Rotate Array -- leetcode
- SVN设置pre-commit和pre-revprop-change钩子
- 【百度实习录】 产品线开发、测试、发布、上线流程
- UIApplication