开发者

iPhone UIWebView initial focus?

I have a simple app with a full screen UIWebView. This contains HTML ge开发者_JAVA百科nerated by the app. I respond to clicks on various elements of the page via document.location = "someCommand"

I have to touch the screen once before it will respond to a second touch. It's almost like it is not the focused control.

It is the only view in the app.

How can I ensure that the first time the UIWebView is touched it responds?


I think you should simply set it as the firstResponder when your view controller is put on the screen.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜