0

アニメーションブラケット内で実行する必要があるコードがいくつかありますがUIView、アニメーションから除外したいので、両側のすべてのコードはアニメーション化されていますが、そうではありません。これを行う方法はありますか?

4

2 に答える 2

2

UIView アニメーション ブロックに挿入してアニメーションから除外できるコードはありませんが、任意に複雑なアニメーション チェーンの UIView アニメーションと完了ブロックをネストできます。

[UIView animateWithDuration:0.3f animations:^ {
    // Animation Code.
} completion: ^ (BOOL finished) {
    // Non-animated code, executed after first animation block...
    // Blah;
    // [Blah blah];
    [UIView animateWithDuration:0.3f animations:^ {
        // More animation code.
    }];
}];
于 2011-06-13T16:51:30.133 に答える