3

iPhone SDK インターフェイス ビルダーでボタンを 30 度回転させる必要があります。

4

3 に答える 3

0

直接できるかどうかはわかりません。CoreGraphics レイヤーを介して独自のボタンを描画していた場合は、それを実行できる可能性があります。

コア アニメーション レイヤー

于 2009-07-29T20:02:30.377 に答える
-1
             [UIView beginAnimations:nil context:nil];

    [UIView setAnimationDuration:0.5];

    button.transform=CGAffineTransformMakeRotation((0.0174532925)*30);

    //put the -ve sign before 30 if you want to rotate the button in the anticlockwise else use this one 

    [UIView commitAnimations];
于 2009-07-29T22:21:22.227 に答える