iPhone - Make a UIWebView subview scrolling to top when user touches the status bar (iOS 4)
I have a mainView that contains : a paginated scrollView, a page Control a close button and each page of the scrollView contains a subview that contains a webView. The user can go left to right from pages to pages, and scroll up and down each webView. But... how can I make the currently displayed webView scroll to top when the user touches the status bar ? EDIT : for iOS4 of course. [yourPaginatedScrollView setScrollsToTop:NO]; [(UIScrollView *)[yourWebView.subviews objectAtIndex:0] setScrollsToTop:YES]; The first line is important too else two scrollviews will be assigned => iOS can't really