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