Programmatically scroll a CPScrollView to the bottom


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  1. [[scrollview documentView] scrollRectToVisible:
  2. CGRectMake(0, CGRectGetHeight([[scrollview documentView] bounds])-1, 1, 1)];

URL: http://elii.info/2010/11/programmatically-scroll-a-cpscrollview-to-the-bottom/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.