画面の上にタッチして下にドラッグすると、UIView が上から下 (または画面の中央まで) になるアニメーションを実行しようとしています。
2 に答える
            1        
        
		
ビュー フレームを設定し、これらのコードをボタン アクションなどに追加します。
    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationBeginsFromCurrentState:YES];
    [UIView setAnimationDuration:1.0];
    [yourView setFrame:CGRectMake(0, 250, 320, 100)];
    [UIView commitAnimations];
    于 2013-03-05T09:23:49.573   に答える
    
    
            0        
        
		
必要に応じて位置を設定する
[UIView beginAnimations:@"DragView" context:nil];
[UIView setAnimationCurve:UIViewAnimationCurveLinear];
[UIView setAnimationDuration:0.5f];
self.dragView.frame = CGRectMake(newXPose, newYPose,width, height);
[UIView commitAnimations];  
    于 2013-03-05T09:24:28.400   に答える