iOS WebView不响应input标签
来源:互联网 发布:mac玩fifaonline3发烫 编辑:程序博客网 时间:2024/05/22 05:26
遇到一个超级坑的问题,一个普通的HTML里面有一个上传图片的功能,用了 这个标签,点击标签可以弹出选择图片的actionsheet
但是点了选项只有没有任何反应,还会关闭当前的webview
在点了标签后,调试会报出以下错误
Passed in type public.item doesn't conform to either public.content or public.data. If you are exporting a new type, please ensure that it conforms to an appropriate parent type.the behavior of the UICollectionViewFlowLayout is not defined because:the item width must be less than the width of the UICollectionView minus the section insets left and right values, minus the content insets left and right values. The relevant UICollectionViewFlowLayout instance is <_UIAlertControllerCollectionViewFlowLayout: 0x7fd0585c9fb0>, and it is attached to <UICollectionView: 0x7fd058837800; frame = (0 44; 10 0); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x7fd0585cacf0>; animations = { bounds.origin=<CASpringAnimation: 0x7fd05a83daf0>; bounds.size=<CASpringAnimation: 0x7fd05a83e2c0>; position=<CASpringAnimation: 0x7fd05a83e450>; }; layer = <CALayer: 0x7fd0585ca830>; contentOffset: {0, 0}; contentSize: {0, 0}> collection view layout: <_UIAlertControllerCollectionViewFlowLayout: 0x7fd0585c9fb0>.Make a symbolic breakpoint at UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger.
然后各种查看这个错误,发现我的这个webviewController是present进来的,然后把进入方式改成pushviewController就可以了
参考链接
http://stackoverflow.com/questions/25942676/ios-8-sdk-modal-uiwebview-and-camera-image-picker
0 0
- iOS WebView不响应input标签
- html标签input 响应回车事件
- ViewPager里非首屏WebView点击事件不响应
- IOS 集成百度地图 自定义显示标签 点击事件不响应
- IOS-不响应旋转事件
- input标签实现让光标不出现!
- Webview兼容h5的localstorage以及input file标签
- jquery 添加标签不响应click事件
- input[file]标签的属性响应很慢的解决办法
- android webview点击input不弹出输入法解决方案
- webview 响应
- android混淆之后webview不响应js点击事件
- WebView之 单击手势不响应的解决方案
- 动态添加的标签绑定click事件不响应和关于IOS下click事件委托失效的解决方案
- IOS UIScrollView \\webview不允许拖动,不露底
- ios不响应presentModalViewController界面的处理
- iOS中按钮不响应点击事件
- ios模拟器不响应电脑键盘解决方法
- javaee 后台分页 jsp+servlet+javaBean+mysql
- md-005启动(.ko)开机启动
- 计算三角形的面积
- 多幅BMP图像数据存入DCM文件 java 實現
- springMVC+spring+mybatis 开发http接口服务端(1. ssm框架搭建)
- iOS WebView不响应input标签
- J2EE验证码图片如何生成和点击刷新验证码
- cordova开发自定义插件
- iOS AFN框架简单使用
- 多任务操作数据库时:2006, 'MySQL server has gone away'
- 零基础HTML及CSS编码练习(一)
- perl pod文档使用 =head =cut =pod pod2text 实现程序usage说明
- HTTP 1.1与HTTP 1.0的比较
- 向升序排列的单链表中插入一个值,要求插入后仍为升序链表