I am developing an app that contains a UIWebView. I want the user to be able to click on a UIButton (or UIButtonBarItem) that will trigger a div element within the UIWebView to toggle on and off (using jQuery – $('shade').toggle();). Is this possible?
Names of elements..
UIWebView = forumIndex
UIButtonBarItem = forumMenuTrigger
The id of the div inside of the UIWebView = #shade

In the handler for
UIButton, you need to somehow grab the reference of theUIWebView. I assume you can do that on your own.Let
forumIndexbe the name of theUIWebView. Use- (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)scriptmethod to inject JavaScript into theUIWebView.