From cd557073378046157a1f5f6ec1feba367e499420 Mon Sep 17 00:00:00 2001 From: Jaye Date: Mon, 16 May 2016 14:23:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86footer=E5=8A=A0=E8=BD=BD=E6=9C=80?= =?UTF-8?q?=E5=BA=95=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将footer加载最底下,解决tableview insert cell的时候footer的残影问题 --- MJRefresh/UIScrollView+MJRefresh.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MJRefresh/UIScrollView+MJRefresh.m b/MJRefresh/UIScrollView+MJRefresh.m index 635022f9..b1b99426 100644 --- a/MJRefresh/UIScrollView+MJRefresh.m +++ b/MJRefresh/UIScrollView+MJRefresh.m @@ -57,7 +57,7 @@ - (void)setMj_footer:(MJRefreshFooter *)mj_footer if (mj_footer != self.mj_footer) { // 删除旧的,添加新的 [self.mj_footer removeFromSuperview]; - [self addSubview:mj_footer]; + [self insertSubview:mj_footer atIndex:0]; // 存储新的 [self willChangeValueForKey:@"mj_footer"]; // KVO