2010-12-03 7 views

答えて

1

配列にすべての画像を入れて、UIImageViewのanimationImagesプロパティに、その配列を割り当てます。そして、

NSArray *imagesArray = [NSArray arrayWithObjects:image1, image2, image3, image4, image5, nil]; 

UIImageView *star = [[UIImageView alloc] init]; 
[star setAnimationImages:imagesArray]; 

いくつかのUIView(コントローラビューまたは他の何か)にそのUIImageViewを追加して、アニメーションを開始:

[someView addSubview:star]; 
[star startAnimating] 
関連する問題