0
我有五个图像,我需要的是动画不同和在屏幕上。我有不同的动画代码,但他们使用图像序列创建动画..或者他们动画单个图像。请帮助同时动画多个图像
谢谢你的兴趣@Rob和@Aadhira。这里是我的代码进行直线运动一个形象..我怎样才能在一个曲线
if(isAnimate) {
NSLog(@"+30,+15");
[UIView beginAnimations: @"moveView" context: nil];
[UIView setAnimationDelegate: self];
[UIView setAnimationDuration: 0.5];
[UIView setAnimationCurve: UIViewAnimationCurveEaseInOut];
searchLight1.frame = CGRectMake(searchLight1.frame.origin.x+30, searchLight1.frame.origin.y + 15, searchLight1.frame.size.width, searchLight1.frame.size.height);
[UIView commitAnimations];
isAnimate = NO;
}
else {
NSLog(@"-30,-15");
[UIView beginAnimations: @"moveView" context: nil];
[UIView setAnimationDelegate: self];
[UIView setAnimationDuration: 0.5];
[UIView setAnimationCurve: UIViewAnimationCurveEaseInOut];
searchLight1.frame = CGRectMake(searchLight1.frame.origin.x-30, searchLight1.frame.origin.y -15, searchLight1.frame.size.width, searchLight1.frame.size.height);
[UIView commitAnimations];
isAnimate = YES;
}
如果你想要一个真正的答案,你需要更具体地说明你想要做什么。但是阅读Core Animation或观看关于Core Aimation的WWDC视频可能会让你开始。 – 2011-12-26 09:01:20