我正在使用以下代码为selectionMoreOptionView的外观设置动画
[selectionMoreOptionView setFrame:CGRectMake(974, 56, 50, 0)];
[self.view insertSubview:selectionMoreOptionView aboveSubview:lightBoxView];
[lightBoxView setAlpha:0.0];
[UIView animateWithDuration:5.0
delay:0.0
options:UIViewAnimationOptionCurveLinear
animations:^{
[lightBoxView setAlpha:0.5];
[selectionMoreOptionView setFrame:CGRectMake(974, 56, 50, 100)];
} completion:^(BOOL finished) {
}];
但它不是动画,而是在没有动画的情况下立即出现。我做错了什么?