Flipboard首屏功能

时间:2011-04-01 04:02:41

标签: iphone animation core-animation

请告诉我Flipboard第一个屏幕动画功能。

2 个答案:

答案 0 :(得分:5)

您所寻找的内容被称为 Ken Burns效果 平移

这是应用它的代码..

        [UIView beginAnimations:nil context:NULL];
        [UIView setAnimationDuration:7];

        [UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
        CGAffineTransform rotate = CGAffineTransformMakeRotation(0.00);
        CGAffineTransform moveLeft = CGAffineTransformMakeTranslation(0.9,0.9);
        CGAffineTransform combo1 = CGAffineTransformConcat(rotate, moveLeft);

        CGAffineTransform zoomOut = CGAffineTransformMakeScale(1.1,1.1);
        CGAffineTransform transform = CGAffineTransformConcat(zoomOut, combo1);
        background.transform = transform;
        [UIView commitAnimations];

快乐编码:)

答案 1 :(得分:1)

This可以帮助您