【发布时间】:2013-09-22 17:29:15
【问题描述】:
您好,我有一段代码,只有一行不工作...
[UIView animateWithDuration:0.3 delay:0.0 options:UIViewAnimationOptionCurveEaseOut animations:^{
[label setFrame:CGRectMake(0, 0, frame.size.width, kStandardLabelHeight)]; //working
[self.currentLabel setFrame:CGRectOffset(self.currentLabel.frame, frame.size.width, 0)]; //not working
[self.currentLabel setAlpha:0.0f]; //working
} completion:^(BOOL finished) {
[self.currentLabel removeFromSuperview];
self.currentLabel = label;
}];
我想不出什么问题了...
【问题讨论】:
-
我也有同样的问题。
-
我假设故事板或 xib 对吗?
-
如果是这样,请转到您的 xib 或该视图的情节提要并取消选择“useAutolayout”。我在某个地方有图片,我一定要找到它。
标签: ios uiview uiviewanimation