Skip to content

Commit

Permalink
Merge pull request CoderMJLee#1102 from DAPIANVNI/master
Browse files Browse the repository at this point in the history
`_ignoredScrollViewContentInsetTop` with immediate effect
  • Loading branch information
CoderMJLee authored Jan 29, 2018
2 parents 31d53f7 + c1898b7 commit 536ab06
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions MJRefresh/Base/MJRefreshHeader.m
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,13 @@ - (NSDate *)lastUpdatedTime
{
return [[NSUserDefaults standardUserDefaults] objectForKey:self.lastUpdatedTimeKey];
}

#pragma mark - 私有方法

- (void)setIgnoredScrollViewContentInsetTop:(CGFloat)ignoredScrollViewContentInsetTop {
_ignoredScrollViewContentInsetTop = ignoredScrollViewContentInsetTop;

self.mj_y = - self.mj_h - _ignoredScrollViewContentInsetTop;
}

@end

0 comments on commit 536ab06

Please sign in to comment.