On a button click I am a开发者_高级运维dding images to scrollview.My requirement is to show only some portion of those images as they large in width compared to screensize.so what I am doing is changing the scrollview contentoffset.Since, I want the transition to be smooth I am using animation block.But unfortunately animation block doesnot works.content offset chnage is not smooth.Please help!
scrollView.contentOffset = CGPointMake(0, 0);
I think that you want to use:
[self.scrollView setContentOffset:offset animated:YES];
精彩评论