Skip to content

Commit

Permalink
将footer加载最底下
Browse files Browse the repository at this point in the history
将footer加载最底下,解决tableview insert cell的时候footer的残影问题
  • Loading branch information
JianYeee committed May 16, 2016
1 parent e4493c1 commit cd55707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MJRefresh/UIScrollView+MJRefresh.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd55707

Please sign in to comment.