0

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

meetpd
  • 9,150
  • 21
  • 71
  • 119
  • That looks more like an image which set when the button is in selected state. If thats the case its definitely possible – visakh7 Mar 18 '11 at 11:17
  • @7KV7, no, I am not refering to the shadow in button on selected state. If you check the app, these buttons are flipped everytime a new question appears. That is what I would like to know. – meetpd Mar 19 '11 at 04:08

2 Answers2

1

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];
YPK
  • 1,851
  • 18
  • 18
0

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

Community
  • 1
  • 1
Simon Lee
  • 22,304
  • 4
  • 41
  • 45
  • May I did not mention it correctly. What I am looking for is: a way to flip the buttons the way this app does. – meetpd Mar 19 '11 at 04:08