0
就像標題所說,在iPhone SDK中,我想創建一個動畫UIImageView並將其用作相機覆蓋。但是,沒有出現。我一直在使用相同的設置來顯示靜態圖像的疊加,而是嘗試使用下面的代碼的時候,沒有出現重疊:使用動畫UIImageView作爲iPhone相機覆蓋
imageView.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"cameraScreenOverlay1.png"],
[UIImage imageNamed:@"cameraScreenOverlay2.png"],
[UIImage imageNamed:@"cameraScreenOverlay3.png"],
[UIImage imageNamed:@"cameraScreenOverlay4.png"],
[UIImage imageNamed:@"cameraScreenOverlay4.png"],
[UIImage imageNamed:@"cameraScreenOverlay4.png"],
[UIImage imageNamed:@"cameraScreenOverlay3.png"],
[UIImage imageNamed:@"cameraScreenOverlay2.png"],
[UIImage imageNamed:@"cameraScreenOverlay1.png"],
nil];
imageView.animationDuration = 1.0;
imageView.animationRepeatCount = 0;
[imageView startAnimating];
我知道上面的代碼工作時ImageView的不作爲覆蓋。有什麼想法嗎?這僅僅是當前SDK的限制嗎?