2012-03-31 3 views

答えて

3

あなたは、このようなコードを呼び出す縮小しようとしているビューで:

[UIView animateWithDuration:1.0 animations:^{ 
    // self is the view in this case 
    // if you call this from the controller, use self.view 
    self.frame = CGRectMake(self.frame.origin.x, self.frame.origin.y, smallWidth, smallHeight); 
    self.bounds = CGRectOffset(self.bounds, amountToMoveX, amountToMoveY); 
}]; 

これは、あなたが探している正確なアニメーションではないかもしれませんが、それはあなたの良いスタートを与える必要があります。

+0

サンプルコードはとても役に立ちます。ありがとうございます。 – tangqiaoboy

+0

あなたは大歓迎です! – Letrstotheprez

関連する問題