How can i scroll to the nearest page in a UIScrollView with paging enabled?

Posted by nathanjosiah on Stack Overflow See other posts from Stack Overflow or by nathanjosiah
Published on 2010-05-20T16:49:46Z Indexed on 2010/05/20 16:50 UTC
Read the original article Hit count: 213

Filed under:
|
|
|
[UIScrollView setContentOffset:CGPointMake(floor((UIScrollView.contentOffset.x - UIScrollView.frame.size.width * 2) / UIScrollView.frame.size.width), 0) animated:NO];

thats all i have but it doesn't work correctly

© Stack Overflow or respective owner

Related posts about iphone

Related posts about SDK