UIToolbar inside UIWebView
I'm trying to replicate the safari behavior. A uitoolbar inside a uiwebview that can be scrollable with the开发者_StackOverflow社区 webview content.
Does anyone knows how to do that? I tried using a scrollview with the toolbar and webview but no success.
My last chance was creating an overlay UIView and pass the touches methods to the uiscrollview, but that does not work.
Any help is appreciated.
UIWebView contains a UISCrollView, you just need to add a UIWebView to your view, then a UIToolBar.
UIWebView* wv = [[UIWebView alloc] initWithFrame:.....];
[yourView addSubview:wv];
UIToolBar* tb = [[UIToolbar alloc] initWithFrame:.....];
[yourView addSubview:tb];
[wv release];
[tb release];
精彩评论