Ste*_*ang 2 html file-upload objective-c uiwebview
We know that in iOS 6 mobile safari supports HTML input file tag to upload images. I just created an HTML file like this and it worked fine in mobile safari. But when I loaded it in a UIWebView, I found I could still tap the "Choose file" button to choose an image file, but after I tapped "done" and returned to the UIWebView, the web page in the UIWebView reloaded and no file was attached to the HTML form. Is that a restriction to UIWebView?
我把它整理出来了.这是因为我把UIWebview加载网页功能放在"-viewWillAppear:(BOOL)动画"中.因此,每次"拍照"模式视图隐藏时,UIWebview都会重新加载网址.我已经修复了它,我现在可以确认HTML输入文件标签上传功能在UIWebview中运行良好.
| 归档时间: |
|
| 查看次数: |
1783 次 |
| 最近记录: |