解决使用tableview的reloadSections刷新之后,sectionFooter有时会消失

简介: //CATransaction解决刷新之后sectionFooter消失的问题 [CATransaction begin]; [CATransaction setCompletionBlock:^{ [self.

//CATransaction解决刷新之后sectionFooter消失的问题

    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        [self.tableView reloadData];
    }];
    NSIndexSet * set = [NSIndexSet indexSetWithIndex:2];
    [self.tableView reloadSections:set withRowAnimation:UITableViewRowAnimationNone];
    [CATransaction commit];
目录
相关文章
tableView禁止滑动
<p class="p1" style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-family:Arial; font-size:14px; line-height:26px"> <span style="font-size:18px">-(<span class="s1">
1426 0
tableVIew删除时的delete按钮被挡住时重写的方法
<span style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px">-( void )willTransitionToState:( UITableViewCellStateMask )state{</span><br style="color:rgb(51,51,51); font-
1307 0
|
C#
C# 控件不刷新问题
/********************************************************************** * C# 控件不刷新问题 * 说明: * 当网络连接出问题的时候,希望C#控件能够自动更新界面上的控件。
926 0
解决Tap手势和UITableView点击冲突
通常是在UIGestureRecognizer的代理函数中进行操作 - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch 两种思路: 根据touch的view的类型进行判断 //example -(BOOL)gest
1326 0
|
JavaScript 前端开发 C#
|
JavaScript 前端开发
实现页面的后退、刷新、前进
实现页面的后退、刷新、前进       实现页面的后退、刷新、前进 function back(){     history.go(-1);  //后退1页} function forward(){     history.
1015 0
tableView的组顶部视图和底部视图跟随tableView滑动
把tableView的样式设置成 <p style="margin-top:0px; margin-bottom:0px; font-size:14px; font-family:Menlo">UITableViewStyleGrouped;</p> <p style="margin-top:0px; margin-bottom:0px; font-size:14px; font-fa
1573 0

热门文章

最新文章