标签:
1.创建
//下拉刷新
_headerView = [MJRefreshHeaderView header];
_headerView.scrollView = _tbView;
_headerView.delegate = self;
//上拉加载更多
_footerView = [MJRefreshFooterView footer];
_footerView.scrollView = _tbView;
_footerView.delegate = self;
[_headerView beginRefreshing];
2.下载成功后停止下载
//修改下载状态
_isLoading = NO;
[_headerView endRefreshing];
[_footerView endRefreshing];
3.释放
-(void)dealloc
{
_headerView.scrollView = nil;
_footerView.scrollView = nil;
}
标签:
原文地址:http://www.cnblogs.com/liaods/p/4788675.html