0
我已經添加了UIView,在UIImageView上使用UIBuider, 現在我想在該imageView上應用動畫,所以我拍攝了一組圖像&,添加了使用UIBuider 創建 通過此代碼我想在UIImageView上應用動畫
NSArray *animationArray=[[NSArray alloc]init];
animationArray=[NSArray arrayWithObjects:
[UIImage imageNamed:@"rabbit1.png"],
[UIImage imageNamed:@"rabbit2.png"],
[UIImage imageNamed:@"rabbit3.png"],
[UIImage imageNamed:@"rabbit4.png"],
[UIImage imageNamed:@"rabbit5.png"],
[UIImage imageNamed:@"rabbit6.png"],
[UIImage imageNamed:@"rabbit7.png"],
[UIImage imageNamed:@"rabbit8.png"],
[UIImage imageNamed:@"rabbit9.png"],
[UIImage imageNamed:@"rabbit10.png"],
[UIImage imageNamed:@"rabbit11.png"],
[UIImage imageNamed:@"rabbit12.png"],
[UIImage imageNamed:@"rabbit13.png"], nil];
tempImageView.animationImages=animationArray;
tempImageView.animationDuration=2;
tempImageView.animationRepeatCount=0;
[tempImageView startAnimating];
tempImageView陣列的ImageView但它不是沃金,沒有顯示任何東西。
你確認爲IBOutlet中tempImageView連接在xib – AppleDelegate
是的它連接 – Rais
我添加了UIImageView使用UIBuider&做一些代碼,沒有人認爲,這是錯的嗎? – Rais