How can i scroll to the nearest page in a UIScrollView with paging enabled?
- by nathanjosiah
[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