Tôi đang sử dụng UIScrollView và sử dụng scrollRectToVisible: hoạt ảnh Điều này có hiệu quả đối với tôi. Nhưng tôi muốn di chuyển đến một vị trí từ từ để người dùng có thể nhận thấy hiệu ứng. Có thể không.iphone - UIScrollview - scrollRectToVisible với hoạt ảnh chậm
Tôi đang thử mã sau, nhưng không thành công.
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationDuration:2.0];
[scrlView scrollRectToVisible:<<some cgrect>> animated:YES];
[UIView commitAnimations];
có thể trùng lặp của [UIScrollView scrollRectToVisible ở tốc độ tùy chỉnh] (http://stackoverflow.com/questions/1558262/uiscrollview-scrollrecttovisible-at-custom-speed) – tbodt