UIWebView 网页图片上传报错
来源:互联网 发布:c 软件 编辑:程序博客网 时间:2024/04/29 22:04
错误信息为:
2016-03-24 10:57:38.206 ----------[19720:1554725] 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.
2016-03-24 10:57:38.409 ----------[19720:1554725] the behavior of the UICollectionViewFlowLayout is not defined because:
2016-03-24 10:57:38.409 ----------[19720:1554725] 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.
2016-03-24 10:57:38.411 ----------[19720:1554725] The relevant UICollectionViewFlowLayout instance is <_UIAlertControllerCollectionViewFlowLayout: 0x140cb6e70>, and it is attached to <UICollectionView: 0x14000da00; frame = (0 44; 10 0); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x140be5990>; animations = { bounds.origin=<CASpringAnimation: 0x140cb5b20>; bounds.size=<CASpringAnimation: 0x140cc3900>; position=<CASpringAnimation: 0x14083de00>; }; layer = <CALayer: 0x140cb73a0>; contentOffset: {0, 0}; contentSize: {0, 0}> collection view layout: <_UIAlertControllerCollectionViewFlowLayout: 0x140cb6e70>.
2016-03-24 10:57:38.411 ----------[19720:1554725] Make a symbolic breakpoint at UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger.
2016-03-24 10:57:41.846 ----------[19720:1554725] Warning: Attempt to present <UIImagePickerController: 0x13fabb800> on <UITabBarController: 0x140abfba0> whose view is not in the window hierarchy!
从网上找的资料:
1. http://stackoverflow.com/questions/26376940/upload-photo-with-uiwebview
2. http://stackoverflow.com/questions/25942676/ios-8-sdk-modal-uiwebview-and-camera-image-picker
测试的webview加上这段代码可以。但是我这个不行。
-(void)dismissViewControllerAnimated:(BOOL)flag completion:(void (^)(void))completion{ if ( self.presentedViewController) { [super dismissViewControllerAnimated:flag completion:completion]; }}
因为我一开始做了一个UINavigationController控制页面,然后直接presentViewController一个tabBarController在上面
加这段代码不行。
把presentViewController改成navigationController pushViewController就可以了。
- UIWebView 网页图片上传报错
- iOS-UIWebView 自适应网页图片
- 网页图片上传
- 网页上传图片
- Servlet里面图片上传报错
- AppStore 上传应用icon图片报错
- wecenter 无法上传图片 报错 upload_not_writable
- android 选择图片上传报错
- UIwebview的报错问题
- 网页上传图片预览功能
- 网页上传图片js+java
- UIWebView加载HTML,如何使网页中的图片可点击?
- SpringMVC上传图片报400
- 在线HTML编辑器 kindeditor上传图片报错
- 关于node.js上传图片报错问题
- thinkphp+ueditor 上传图片firefox中js报错
- iOS 10 上传图片、麦克风、相册等等报错问题
- struts2图片上传报错 findText cleanUpRequest StandardWrapperValve
- 换工作
- struts2中actionsupport的作用
- C# 子窗体调用父窗体的方法
- HYSBZ 1858(Scoi2010) 序列操作(线段树+区间合并)
- FreeMarker自定义的数据分页标签及使用示例
- UIWebView 网页图片上传报错
- 真机调试时使用自己的key运行程序
- POI导出Excel
- Java泛型中<? super String>和<? extends String>
- 扩展KMP的模版
- C语言指针
- java+selenium实现自动化打开页面
- 中国五金门控发展情况 (zz)
- 面试 ABAPer的一些感想