views:

328

answers:

2

I am trying to have a UI which is a full screen UIWebView. When the view is touched the tool bar appears.

I can do everything but get the touchend event in the UIWebView. I have tried putting a UIColor.Clear'd UIView ontop and catching TouchEnd there and passing it on, but would like a better solution.

I understand that we are not supposed to subclass the UIWebView from the docs.

Ideas?

A: 

I found a better solution. Simple have the HTML in the UIWebView send a message to the client via a document.location = "SomeCommandName"

Then catch this in code and toggle the view as needed.

Much simpler.

BahaiResearch.com
A: 

Show examples please! Wwhat do you mean document.location?

Aston
this should be a comment on the accepted answer, instead of another answer.
Squeegy
Thamks for '-1' but as far as I knew I can't post comments for accepted answers!
Aston
The problem is your rep... it's not high enough to post comments.
Cristian