Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a potential KVO crash. #133

Merged
merged 2 commits into from
Sep 26, 2013
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixed an animation problem on iOS 7
Immediately layout subviews when changing state, otherwise changes in layoutSubviews will be animated on iOS 7.
  • Loading branch information
nonamelive committed Sep 23, 2013
commit 8e726fc6047693ef89ab477909d4464712a003c4
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