html - Call iPhone Photo Library on WebView Button Click -
how can call iphone photo library when html button element (e.g., <input type="button">
) clicked in webview? appreciated.
one way call custom url
open:\\imagebrowser
then in uiwebviewdelegate catch url , open photo library picker:
- (bool) webview:(uiwebview *)webview shouldstartloadwithrequest:(nsurlrequest *)request navigationtype:(uiwebviewnavigationtype)navigationtype { if ([[[request url] absoluteurl] isequaltostring:@"open:\\imagebrowser"] { // open image picker } }
Comments
Post a Comment