Skip to content

Commit

Permalink
Fixed an animation problem on iOS 7
Browse files Browse the repository at this point in the history
Immediately layout subviews when changing state, otherwise changes in layoutSubviews will be animated on iOS 7.
  • Loading branch information
nonamelive committed Sep 23, 2013
1 parent 1145eed commit 8e726fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SVPullToRefresh/UIScrollView+SVPullToRefresh.m
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@ - (void)setState:(SVPullToRefreshState)newState {
_state = newState;

[self setNeedsLayout];
[self layoutIfNeeded];

switch (newState) {
case SVPullToRefreshStateStopped:
Expand Down

0 comments on commit 8e726fc

Please sign in to comment.