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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -