beginAnimations:context:
アニメーションブロックの設定をします。
+(void)beginAnimations:(NSString *)animationID context:(void *)context
解説
commitAnimationsでアニメーションを実行します。
返り値
( void )
なし
引数
( NSString * )animationID
アニメーションID
( void * )context
コンテキスト
フレームワーク
UIKit
クラス
UIView
Instance Methods
使用可能
iPhone2.0
参照
例文
-(IBAction)buttonAction:(id)sender{ //ラベルを透明にするアニメーション [UIView beginAnimations:@"MyAnimation" context: nil ]; [UIView setAnimationDuration:2.0];//アニメーションの時間を設定 theLabel.alpha = 0.0f; [UIView commitAnimations]; }