문제

I wanted to know if there's a smoother and lighter way to make animations with a loop.

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

Is there a better way than that makes the animation smoother or is it that I'm testing on the iOS simulator on the Mac?

도움이 되었습니까?

해결책

CADisplayLink will let you trigger your work when the display refreshes; that's probably the best thing to use for this.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top