Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Compile 'em all

macrumors 601
Original poster
Apr 6, 2005
4,131
359
I think I have already summarized my question in the thread's subject :D. Basically my app has a UIWebView but tapping the status bar doesn't scroll back to the top unlike in Mobile Safari. Is there a certain method I need to override or property a need to set to get such behavior?

thanks!
 
Yes, that's what I meant. This is controlled by the UIScrollView scrollsToTop property. Did you read the docs for that? Is this working for you or not? Although UIWebView doesn't inherit from UIScrollView it has one or hosts one. I know that it's not exposed but are you doing something that would prevent the webview's scrollview from supporting the scrollsToTop property?

FWIW, I have a simple web view in my app to display some simple text and it scrolls to the top.
 
It is not working for me because I can't see how can I set said property. UIWebView doesn't have a UIScrollView. I have checked the docs.

edit: im not doing anything special. The UIWebView just loads a URL, and for all sites I tried it never scrolls to the top when tapping the status bar.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.