开发者

How to flip button in iphone sdk?

开发者 https://www.devze.com 2023-02-18 18:18 出处:网络
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 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

精彩评论

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

关注公众号