开发者

iPhone UIWebView initial focus?

开发者 https://www.devze.com 2022-12-22 19:23 出处:网络
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 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

精彩评论

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