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