码迷,mamicode.com
首页 > 其他好文 > 详细

修改利用SVPullToRefresh 下拉刷新时tableView 被导航条覆盖一行的

时间:2015-09-28 23:50:02      阅读:155      评论:0      收藏:0      [点我收藏+]

标签:

//修复刷新坐标起点问题

if ([self respondsToSelector:@selector(automaticallyAdjustsScrollViewInsets)])

    {

        self.automaticallyAdjustsScrollViewInsets=NO;

        UIEdgeInsets insets= _TableView.contentInset;

        insets.top= self.navigationController.navigationBar.bounds.size.height + [UIApplication sharedApplication].statusBarFrame.size.height;

        _TableView.contentInset = insets;

        _TableView.scrollIndicatorInsets = insets;

    }

//上啦下拉刷新

__weak ListViewController * list= self;

    [_TableView addPullToRefreshWithActionHandler:^{

        

        [list AddpullData];

    }];

    [_TableView addInfiniteScrollingWithActionHandler:^{

        

        [list InfinstData];

    }];

修改利用SVPullToRefresh 下拉刷新时tableView 被导航条覆盖一行的

标签:

原文地址:http://www.cnblogs.com/wangzhen-Me/p/4845108.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!