mirror of
https://github.com/zhigang1992/SVPullToRefresh.git
synced 2026-04-29 01:35:54 +08:00
Fixed an animation problem on iOS 7
Immediately layout subviews when changing state, otherwise changes in layoutSubviews will be animated on iOS 7.
This commit is contained in:
@@ -622,6 +622,7 @@ static char UIScrollViewPullToRefreshView;
|
||||
_state = newState;
|
||||
|
||||
[self setNeedsLayout];
|
||||
[self layoutIfNeeded];
|
||||
|
||||
switch (newState) {
|
||||
case SVPullToRefreshStateStopped:
|
||||
|
||||
Reference in New Issue
Block a user