Untitled


SUBMITTED BY: Guest

DATE: Dec. 11, 2013, 5:56 a.m.

FORMAT: Text only

SIZE: 506 Bytes

HITS: 819

  1. _scrollView.contentOffset = CGPointZero;
  2. _scrollView.frame = CGRectMake(0, 0,
  3. _scrollView.contentSize.width,
  4. _scrollView.contentSize.height);
  5. //_scrollView.contentOffset = CGPointZero; // Don't change the offset
  6. _scrollView.frame = CGRectMake(0, 0,
  7. _scrollView.contentSize.width,
  8. _scrollView.contentSize.height - _scrollView.contentOffset);

comments powered by Disqus