meetpd
meetpd

Reputation: 9219

How to flip button in iphone sdk?

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:

enter image description here

Upvotes: 0

Views: 905

Answers (2)

YPK
YPK

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

Simon Lee
Simon Lee

Reputation: 22334

You can mimic inner shadows in CoreGraphics... see Inner Shadows

Upvotes: 0

Related Questions