Created
July 24, 2012 20:45
-
-
Save yimajo/3172557 to your computer and use it in GitHub Desktop.
良い感じにViewをポップアップしてくれるアニメーション
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)popupView:(UIView *)view | |
{ | |
view.transform = CGAffineTransformScale(CGAffineTransformIdentity,0.5f,0.5f); | |
[UIView animateWithDuration:0.2 | |
delay:0.0 | |
options:UIViewAnimationOptionCurveEaseInOut | |
animations:^{ | |
view.transform = CGAffineTransformScale(CGAffineTransformIdentity,1.2f,1.2f); | |
} | |
completion:^(BOOL finished){ | |
[UIView animateWithDuration:0.1 | |
delay:0.0 | |
options:UIViewAnimationOptionCurveEaseOut | |
animations:^{ | |
view.transform = CGAffineTransformScale(CGAffineTransformIdentity,0.9f,0.9f); | |
} | |
completion:^(BOOL finished) { | |
[UIView animateWithDuration:0.1 | |
delay:0.0 | |
options:UIViewAnimationOptionCurveEaseOut | |
animations:^{ | |
view.transform = CGAffineTransformScale(CGAffineTransformIdentity,1.0f,1.0f); | |
} | |
completion:nil | |
]; | |
} | |
]; | |
} | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gist先生がハードタブの幅を広く表示してくれて頭悪い感がするので s/¥t/ /g した