Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/98.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 使用UIImageView alloc同时移动多个图像时性能不佳_Ios_Objective C - Fatal编程技术网

Ios 使用UIImageView alloc同时移动多个图像时性能不佳

Ios 使用UIImageView alloc同时移动多个图像时性能不佳,ios,objective-c,Ios,Objective C,这就是我遇到的问题,我的应用程序有几个图像(50x50~150x150)存储在NSMutableArray中,每个图像在for循环中从x1,y1移动到x1+I,y1+I(I+=1),计时器每0.02秒调用一次。它在模拟器上运行平稳,但iphone,我该怎么办??没有使用Cocos2d或OpenGL有什么有效的方法吗 enter code here for (int i=0; i <10; i++) { imgImageView = [imgImageA

这就是我遇到的问题,我的应用程序有几个图像(50x50~150x150)存储在NSMutableArray中,每个图像在for循环中从x1,y1移动到x1+I,y1+I(I+=1),计时器每0.02秒调用一次。它在模拟器上运行平稳,但iphone,我该怎么办??没有使用Cocos2d或OpenGL有什么有效的方法吗

enter code here

for (int i=0; i <10; i++)             
{ 
    imgImageView = [imgImageArray objectAtIndex:i];
    imgImageView.center = CGPointMake(current_x+1, current_y+1);
}
在此处输入代码

对于(int i=0;i使用UIView动画方法。这就是它们的用途。例如:

是否要移动一些imageView的动画?为什么不使用UIView动画?图像将移动直到到达目标,它们由调用for循环的计时器触发。。。