我必须根据不同的条件来设置它.
if(your Condition) { [scrollView setContentOffset:CGPointMake(0,-50) animated:YES]; }
有关详细信息,您可以通过此链接进行操作 –
http://www.iphonedevsdk.com/forum/iphone-sdk-development/2445-uiscrollview-contentoffset-question.html