我有两个同时淡入显示的对象,最初设置为hidden
,我想在第一个动画后几秒钟触发第二个动画,但它们同时淡入?
_text.alpha = 0;
_text.hidden = NO;
[UIView animateWithDuration:1.9 animations:^{
_text.alpha = 1;
}];
////////////second animation
_note.alpha = 0;
_note.hidden = NO;
[UIView setAnimationDelay:2.0];
[UIView animateWithDuration:1.9 animations:^{
_note.alpha = 1;
}];