开发者

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=开发者_Python百科8

I am refering to this screen in the app:

How to flip button in iphone sdk?


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];


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜