【发布时间】:2012-07-05 01:47:59
【问题描述】:
当我将 xib 类设置为 UIView 的子类,然后在 UIView 上设置animateWithDuration 时,我得到了
No visible @interface for 'UIView' declares the selector
'animateWithDuration:delay:options:animations:completion:'
错误窗格显示这是一个 ARC 问题
我正在尝试在 UIView 上运行动画。
编辑:导致错误的代码
[sampleSourceView.view animateWithDuration:1
delay:1.0
options: UIViewAnimationCurveEaseOut
animations:^{
sampleSourceView.view.frame = sampleSourceFrame;
}
completion:^(BOOL finished){
NSLog(@"Done!");
}];
[self.view addSubview:sampleSourceView.view];
【问题讨论】:
-
你能贴出导致错误的代码吗?
标签: ios uiview core-animation