數組我有UIViews的陣列,我用下面的代碼動畫:動畫UIViews
for (int i = 0; i<(int)viewArray.count; i++) {
UIView *view = [viewArray objectAtIndex:i];
CALayer *layer = view.layer;
//animate the layer
}
我的問題是,是否有任何方式爲具有每動畫之間的延遲,所以,例如,它在數組中激活一個UIView並在0.2秒左右後開始下一個動畫?任何幫助將不勝感激!
有沒有辦法在'for'循環中定義動畫列表,然後只調用一次[UIView animateWithDuration]?該方法會更有效嗎? – jwegner