Iphone UIScrollViewDelegate未滚动动画

Iphone UIScrollViewDelegate未滚动动画,iphone,objective-c,ios,uiscrollview,uiscrollviewdelegate,Iphone,Objective C,Ios,Uiscrollview,Uiscrollviewdelegate,我已经创建了一个使用UIScrollViewDelegate的UIScrollView子类。我创建它是为了使用OpenGL ES对象。我有以下代码: -(void)scrollViewDidScroll:(UIScrollView *)scrollView{ for(InputEntity * iEnt in [sceneInstance inputObjects]){ iEnt.display.translation = GLKVector2Make(0, self.c

我已经创建了一个使用UIScrollViewDelegate的UIScrollView子类。我创建它是为了使用OpenGL ES对象。我有以下代码:

-(void)scrollViewDidScroll:(UIScrollView *)scrollView{
    for(InputEntity * iEnt in [sceneInstance inputObjects]){
        iEnt.display.translation = GLKVector2Make(0, self.contentOffset.y);
    }
}

它最终会将所有内容放在正确的位置,但直到滚动视图停止移动后才会更新位置。是否有办法修复此问题,使其看起来像UIScrollViews那样具有动画效果?

是否有类似于
setNeedDisplay:
如果您有,您可以:

-(void)scrollViewDidScroll:(UIScrollView *)scrollView{
for(InputEntity * iEnt in [sceneInstance inputObjects]){
    iEnt.display.translation = GLKVector2Make(0, self.contentOffset.y);
    //render here
}
}