Reputation: 9219
I would like to know how buttons are flipped in the following app:
http://itunes.apple.com/app/brain-cafe-geoquiz/id334815548?mt=8
I am refering to this screen in the app:
Upvotes: 0
Views: 905
Reputation: 1851
Refer the following code:
CGContextRef context = UIGraphicsGetCurrentContext();
context = UIGraphicsGetCurrentContext();
[UIView beginAnimations:nil context:context];
[UIView setAnimationDuration:0.75];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:button cache:YES];
[UIView commitAnimations];
Upvotes: 1
Reputation: 22334
You can mimic inner shadows in CoreGraphics... see Inner Shadows
Upvotes: 0