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
Hey guys, I have been struggling to get this working for the past 1.5 days. Basically I have a utility-based app. So, the rootview/mainview/flipview. I am also using IB (3 xibs). The problem is when I have a UIWebView in the main view (whether added to that view in code from the MainViewController or by simply adding it to the MainView.xib) tapping the status bar won't make it scroll to the top (like in mobile safari).

I have been looking around and it seems that to get this scroll to top working I need to add the UIWebView to a UIScrollView first. I tried that (in IB in the mainview.xib) and also programmatically in the mainview controller and it wouldn't work. Do I need to add the UIScrollView to the rootview controller instead or what exactly am I missing?

Btw, adding the webview to the scrollview totally disables scrolling inside the webview. Which is another problem.

Any help would be highly highly appreciated!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.