Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/111.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 有没有比';scheduledTimerWithTimeInterval';_Ios_Objective C_Game Loop - Fatal编程技术网

Ios 有没有比';scheduledTimerWithTimeInterval';

Ios 有没有比';scheduledTimerWithTimeInterval';,ios,objective-c,game-loop,Ios,Objective C,Game Loop,我想知道是否有一种更平滑、更轻的方法来制作带有循环的动画 [NSTimer scheduledTimerWithTimeInterval:[NSTimeInterval] target:[target] selector:@selector() userInfo:[UInfo] repeats:[BOOL]]; 有没有比这更好的方法使动画更平滑,或者我正在Mac上的iOS模拟器上测试?会让你在屏幕刷新时触发工作;这可能是最好的选择。在iOS中,大约有30种(好的,可能有半打)不同的时间间隔方法

我想知道是否有一种更平滑、更轻的方法来制作带有循环的动画

[NSTimer scheduledTimerWithTimeInterval:[NSTimeInterval] target:[target] selector:@selector() userInfo:[UInfo] repeats:[BOOL]];

有没有比这更好的方法使动画更平滑,或者我正在Mac上的iOS模拟器上测试?

会让你在屏幕刷新时触发工作;这可能是最好的选择。

在iOS中,大约有30种(好的,可能有半打)不同的时间间隔方法。是的,但如果你仔细看,你可以读到“更好”,而不仅仅是其他方法……你在使用sprite工具包吗?