SVPullToRefresh 下拉刷新导航栏位置错误

来源:互联网 发布:c语言getchar函数用法 编辑:程序博客网 时间:2024/05/22 00:16

iOS7 下使用SVPullToRefresh 下拉刷新导航栏位置错误;下拉刷新之后,tableview的第一列会跑到导航栏的下面,4/4有这个问题,5/5s没测到这个问题,解决方法:

//修复下拉刷新位置错误 代码开始    if ([self respondsToSelector:@selector(automaticallyAdjustsScrollViewInsets)]) {        self.automaticallyAdjustsScrollViewInsets = NO;                UIEdgeInsets insets = self.m_tableVIew.contentInset;        insets.top = self.navigationController.navigationBar.bounds.size.height +        [UIApplication sharedApplication].statusBarFrame.size.height;        self.m_tableVIew.contentInset = insets;        self.m_tableVIew.scrollIndicatorInsets = insets;    }    //修复下拉刷新位置错误  代码结束

参考:http://www.cnblogs.com/cocoajin/p/3384049.html

1 0
原创粉丝点击