iphone ios UITabBarController 切换动画

以下大家友情支持一下:

做了一个产品,需要人气支持一下,android和iphone上91市场搜索#super junior粉丝团#,或者直接到页面下载http://m.ixingji.com/m.html?p=X16,大家帮忙捧捧场。


UITabBarController setSelectedIndex切换界面是如何使用动画



        if (itemIndex == 0) {
            CATransition* animation = [CATransition animation];
            [animation setDuration:0.2f];
            [animation setType:kCATransitionMoveIn];
            [animation setSubtype:kCATransitionFromRight];
            [animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
            [[self.view layer]addAnimation:animation forKey:@"switchView"];
        }
        
        [super setSelectedIndex:itemIndex];


你可能感兴趣的:(ios,iPhone,animation,layer)