Why uiscrollview doesn't make visible the contentOffset change?

Up vote 0 down vote favorite 1 share g+ share fb share tw.

Hello everyone I have a problem with a uiscrollview. When I press a button to change the contentOffset scollview through a UIView animation so I have something like this: NSLog(@"%@\n %f %f", scroll, scroll.contentOffset. X, scroll.contentOffset.

Y); UIView beginAnimation:@"anima" context:nil; UIView setAnimationDuration:0.5; scroll. ContentOffset = CGPointMake(0,index * scroll.frame.size. Height; UIView commitAnimations; NSLog(@"%@\n %f %f", scroll, scroll.contentOffset.

X, scroll.contentOffset. Y); Making a log cotentOffSet before and after these instructions is changed and obviously the scrollview is an existing instance so it is different from nil. The problem is that the screen does not change the offset scrollview that is not moving.

I do the same thing in other parts of the code and other scrollview but it works perfectly. I also tried: scroll setContentOffset:CGPointMake(0, index * currentVerticalScrollView.frame.size. Height) animated:YES ; but does not change too!

Why isn't it work? Iphone objective-c ios ipad uiscrollview link|improve this question asked Mar 24 '11 at 23:10SimoneLeopizzi11.

– Tommy Mar 24 '11 at 23:34 Yes, of course. – SimoneLeopizzi Mar 25 '11 at 0:56.

If so, it may need a scroll setNeedsDisplay to give it a kick!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions