我想知道objective c中有没有内置的库或者类似jquery提供的东西来实现流畅的动画效果。
我不是在问如何在objective c中使用jquery,因为我知道它们是两种语言。我想问的是,在objective C中是否有类似于jquery的动画之类的东西。
如果没有,谁能给我指出正确的方向,让我从头开始为目标c构建类似的东西。
谢谢,
迈克尔
发布于 2013-02-21 19:56:40
有关视图,请查看动画指南:
这里有一个很棒的教程:
http://www.raywenderlich.com/2454/how-to-use-uiview-animation-tutorial
你可以做一些很酷的事情,比如淡出然后再淡入:
[UIView animateWithDuration:1.0
delay: 0.0
options: UIViewAnimationOptionCurveEaseIn
animations:^{
self.view.alpha = 0.0;
}
completion:^(BOOL finished){
// Wait one second and then fade in the view
[UIView animateWithDuration:1.0
delay: 1.0
options:UIViewAnimationOptionCurveEaseOut
animations:^{
self.view.alpha = 1.0;
}
completion:nil];
}];
https://stackoverflow.com/questions/15010944
复制相似问题