This repository has been archived by the owner. It is now read-only.

only start animating spinner after arrow.alpha=0.0 animation is completed #1

Merged
merged 1 commit into from Dec 18, 2012
Jump to file or symbol
Failed to load files and symbols.
+7 −4
Diff settings

Always

Just for now

@@ -166,9 +166,13 @@ - (void)setRefreshControlState:(CKRefreshControlState)refreshControlState {
case CKRefreshControlStateRefreshing:
self.alpha = 1.0;
[UIView animateWithDuration:0.2 animations:^{
arrow.alpha = 0.0;
}];
[UIView animateWithDuration: 0.2
animations:^{
arrow.alpha = 0.0;
}
completion:^(BOOL finished) {
[spinner startAnimating];
}];
break;
};
@@ -177,7 +181,6 @@ - (void)setRefreshControlState:(CKRefreshControlState)refreshControlState {
UIEdgeInsets contentInset = UIEdgeInsetsMake(originalTopContentInset, 0, 0, 0);
if (refreshControlState == CKRefreshControlStateRefreshing) {
contentInset = UIEdgeInsetsMake(self.frame.size.height + originalTopContentInset, 0, 0, 0);
[spinner startAnimating];
}
else {
[spinner stopAnimating];
ProTip! Use n and p to navigate between commits in a pull request.