アニメーション画像を UILabel 背景として設定しようとしています。私のラベルはポイントから移動します (x=0 y260 から x=480 y=260) アニメーション中に UIImage を追加したいです。だから私はこのように試します
UIImageView *myimg=[[UIImageView alloc]init];
myimg.animationImages =[NSArray arrayWithObjects:
[UIImage imageNamed:@"1ANI.png"],
[UIImage imageNamed:@"2ANI.png"],
[UIImage imageNamed:@"3ANI.png"],nil];
myimg.animationDuration = 1.5;
myimg.animationRepeatCount = 0;
[myimg startAnimating];
[lbl1 addSubview:myimg];
[myimg release];
このように単一のUIImageでUILabelの背景を設定します
UIImage *image=[UIImage imageNamed:@"1ANI.png"];
lbl2.backgroundColor = [UIColor colorWithPatternImage:image];
単一の画像コードは機能しますが、アニメーション画像で実装しようとすると(上記のコードショーのように)、機能しませんアニメーション画像を UILabel Background.Thanx として設定する方法を教えてくれますか?