0
我做了我自己的實現,讓我的UITextView始終上下滾動(顯然UIViewAnimationOptionRepeat | UIViewAnimationOptionAutoreverse不適用於iOS 7中的setContentOffSet)。UITextView第一行在滾動時消失
所以,代碼讓我的UITextView(不可編輯和可選)滾動上下。無論如何,當它開始向下滾動時,UITextView的第一行消失。當它再次滾動時,該行再次顯示(直到向下滾動動畫開始)。
我已經檢查過沒有其他視圖隱藏第一行。
我真的被困在這裏,因爲這似乎是框架的一些錯誤,但我找不到一個體面的解決方法。
[UIView animateWithDuration:1.5f
delay:0.3f
options:UIViewAnimationOptionCurveLinear
animations:^{
[self.detailTextTop setContentOffset:CGPointMake(0, maxScrollPoint) animated:NO];
}
completion:^(BOOL finished) {
if (shouldScroll) {
__weak id weakSelf = self;
[[NSOperationQueue mainQueue] addOperationWithBlock:^{
[weakSelf performSelector:@selector(scrollNote) withObject:self afterDelay:1.5];
}];
}
}
];