0

私は添付のci-belowとして画像を所有しています!

このアニメーション(ci-below)をロードするローダーを作りたいです!

私はこれに使用するコードの小さなアイデアを持っていますが、うーん、この問題についてあなたの意見を聞かせてください。

ローダー アニメーションの画像

思い通りのアニメーション!

クイックコンセプトコード:

[UIView animateWithDuration:1.0f delay:0.0f options: UIViewAnimationCurveLinear animations:^(void) {
        //rotate half way (use 179.9 for direction, -179.9 is left)
        self.refreshButton.transform = CGAffineTransformRotate(self.refreshButton.transform,179.9*M_PI/180);
    } completion:^(BOOL finished) {
        //still loading? rotate half again
        if ([self.superAwesomeWebView isLoading]) {
            [self animateLoadButton];
        }
    }];
4

1 に答える 1

1

これでうまくいくはずです(ARCが必要です):

https://www.cocoacontrols.com/controls/dacircularprogress

于 2013-07-13T01:57:10.007 に答える