![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UITableView
Fantasy_Jun
这个作者很懒,什么都没留下…
展开
-
tableView多余cell处理及去除最后一条分割线
tableView会遇到这种情况,存在多余的cell:解决方式为:添加一个tableFooterView(ps:注意这里必须要设置UIView大小不然背景色添加不上去) tableView.tableFooterView = [[UIView alloc]initWithFrame:SCREEN_FRAME]; tableView.tableFooterView.ba原创 2017-04-08 14:24:25 · 1486 阅读 · 0 评论 -
ios当tableView整体上移时的处理
方法一:在使用了navigationController后,当界面进行跳转往返后,时而会出现tableView或collectionView上移的情况,通常会自动上移64个像素,那么这种情况,我们可以关闭tableView的自动适配布局。self.automaticallyAdjustsScrollViewInsets = NO;// 默认是YE 方法二:当出现ta转载 2017-04-19 09:54:45 · 1835 阅读 · 0 评论 -
TableView去除sectionheader悬浮效果,设置Group去除顶部留白
我采用的是将tableView设置为UITableViewStyleGrouped,但是设置之后需要对界面进行一系列的调整如何去除tableView的顶部留白?分组类型的tableView存在默认数值的header与footer,以下为处理方式:方法一:- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSe原创 2017-04-08 21:05:18 · 3883 阅读 · 0 评论 -
iOS-一行代码让你的TableView动起来
最近看到的一个不错的demo,让tableView进入添加动画效果UITableView 是iOS日常开发中经常使用到的控件。tableView的普通展示效果比较生硬,为了提升APP的活力,提升体验,我们可以对根据tableView的特点,操作Cell实现一些动画效果。转载 2017-09-11 17:04:40 · 744 阅读 · 0 评论 -
ios实现UITableView左滑删除-复制即用
开发项目时候需要用到tableview左滑删除,就研究了一下,话不多说直接上代码//设Cell可编辑- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath{ return YES;}//设置删除按钮-(UITableViewCellEditingStyle)t原创 2017-09-20 10:43:25 · 735 阅读 · 0 评论