2016-08-02 11 views
1

일련의 이미지를 애니메이션화해야합니다. startAnimatingWithImagesInRange가 완료되지 않았습니다.

gif animation shows animated circle which animates from 0% to 45% of its radius

// Animate Circle 
let duration = 1.0 
circleGroup.setBackgroundImageNamed("arc") 
circleGroup.startAnimatingWithImagesInRange(NSRange(location: 0, length: 100), duration: duration, repeatCount: 0) 

나는 101 개 이미지를 가지고있다. arc0 ~ arc100

Xcode screenshot with images in the folder.

스토리 보드는 :

당신은 GIF에서 볼 수 있듯이

storyboard with the watch app UI

, 내 문제는 완전한 원의 여행을하지 않는 애니메이션이다. 어떠한 제안?

+0

'duration'을 더 크게 설정하려 했습니까? – Astoria

+0

예, 'duration'을 길게 설정하면 속도가 느려지지만 여전히 완전하지는 않으며 같은 지점에서 끝납니다. –

+0

'circleGroup' 유형이란 무엇입니까? – Astoria

답변

0

애니메이션이 40 % 직후에 정지하는 것처럼 보입니다. 자산 라이브러리를 열었고 모든 파일의 이름이 정확히 같은 이름으로 바뀌 었습니다. 그럼 난 내 망할 놈의 클라이언트를 열고 나는이 변경 보았다

애니메이션이 작동합니다. 보시다시피 파일 이름에 문제가있어서 공간이 부족합니다.

또한 뒤로 애니메이션을 할 때 location이 출발점이 아니라 목적지가된다는 것을 알게되었습니다.

관련 문제