0
有一個UIScrollView的私有方法,應該允許我控制內容偏移動畫的速度。但是,當我將其覆蓋在我的課是這樣的...UIScrollView覆蓋
- (void)setContentOffsetAnimationDuration:(CFTimeInterval)value
{
_contentOffsetAnimationDuration = 10;
}
[self setContentOffset:offset animated:YES];
我得到一個編譯錯誤這樣的...
Undefined symbols for architecture armv7:
"_OBJC_IVAR_$_UIScrollView._contentOffsetAnimationDuration", referenced from:
-[HistoryScrollView setContentOffsetAnimationDuration:] in HistoryScrollView.o
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status
任何想法。我真的不想把一些笨拙的動畫代碼放到這裏。它非常接近修復。