Detecting UIScrollView page change
问题 Is there a way to detect or get a notification when user changes the page in a paging-enabled UIScrollView? 回答1: Implement the delegate of UIScrollView. This method is what you are looking for. - (void)scrollViewDidScroll:(UIScrollView *)scrollView 回答2: Use this to detect which page is currently being shown and perform some action on page change: - (void)scrollViewDidScroll:(UIScrollView *)scrollView { static NSInteger previousPage = 0; CGFloat pageWidth = scrollView.frame.size.width; float