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:
Kai
2013-09-23 10:56:48 +08:00
parent 1145eed986
commit 8e726fc604

View File

@@ -622,6 +622,7 @@ static char UIScrollViewPullToRefreshView;
_state = newState;
[self setNeedsLayout];
[self layoutIfNeeded];
switch (newState) {
case SVPullToRefreshStateStopped: