Io uso JazzHands per creare un'animazione basata su fotogramma chiave in un UIScrollView. Ecco uno example. Guarda la vista in alto. Quando ti sposti da una pagina all'altra. Mentre l'animazione è in esecuzione, la vista in alto si sposta leggermente da sinistra a destra. L'animazione appare un po 'sfocata.L'animazione del fotogramma chiave appare sfocata quando si spostano i fotogrammi?
ecco il codice preso dal example here:
IFTTTFrameAnimation *titleView1FrameAnimation = [IFTTTFrameAnimation new];
titleView1FrameAnimation.view = self.titleView1;
[self.animator addAnimation:titleView1FrameAnimation];
[titleView1FrameAnimation addKeyFrame:[[IFTTTAnimationKeyFrame alloc] initWithTime:timeForPage(1)
andFrame:self.titleView1.frame]];
[titleView1FrameAnimation addKeyFrame:[[IFTTTAnimationKeyFrame alloc] initWithTime:timeForPage(2)
andFrame:CGRectOffset(self.titleView1.frame, timeForPage(2), 0)]];
[titleView1FrameAnimation addKeyFrame:[[IFTTTAnimationKeyFrame alloc] initWithTime:timeForPage(3)
andFrame:CGRectOffset(self.titleView1.frame, timeForPage(3), 0)]];
[titleView1FrameAnimation addKeyFrame:[[IFTTTAnimationKeyFrame alloc] initWithTime:timeForPage(4)
andFrame:CGRectOffset(self.titleView1.frame, timeForPage(4), 0)]];
Quando si esegue il demo prendere uno sguardo alla parte contrassegnata con il rosso nello screenshot seguente:
Modifica: ecco il codice contenente questo problema: https://github.com/steffimueller/Intro-Guide-View-for-Talk.ai
Come posso rendere l'animazione scorrevole e meno sfocata?
Giusto per essere sicuro. Vuoi liberarti del movimento sinistro e destro della vista dall'alto? –
Sì. Non so se la mia espressione è giusta ma le viste in alto tremano orizzontalmente. –