开发者

Rotate a UI Button in iPhone SDK

Quick and hopefully obvious question.

I have a progmatically created button in my开发者_高级运维 iPhone app that I wish to rotate 45 degrees clockwise, named buttonuq , how can I do this?


You can use a transformation like :

yourButton.transform = CGAffineTransformMakeRotation(45.0*M_PI/180.0);

Good Luck !

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜