access camera from uiwebview?
问题 Is it possible to access iphone's camera from uiwebview? I know phonegap does it, but how to make it work without phonegap? Thanks. 回答1: You can implement the UIWebView Delegate and intercept any attempted page load. By setting a custom url, you can pass a message to Objective C, that can launch the camera. To send data back to the web weiw you can initiate a new load (as I do in my example), or pass in some javascript using another method on UIWebView. Here is a working example, I just wrote