Skip to content

Commit

Permalink
Merge pull request CoderMJLee#629 from xiaozi4624/master
Browse files Browse the repository at this point in the history
将footer加在最底下,解决tableview insert cell的时候footer的残影问题
  • Loading branch information
CoderMJLee committed Jun 8, 2016
2 parents 0216f1f + cd55707 commit 62cb56c
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 62cb56c

Please sign in to comment.