[英]iPad simulator iOS6, not getting image from UIImagePickerController photo library
I just developed an app with new iOS6. 我刚刚用新的iOS6开发了一个应用程序。 My Xcode version is 4.5.1. 我的Xcode版本是4.5.1。 I have some issues selecting an image from UIImagePickerController
. 我从UIImagePickerController
选择图像时遇到一些问题。 When I select an image, I get the following error and do not get an image on imageView 选择图像时,出现以下错误,并且在imageView上没有图像
Could not create PLImageTable for format 4031 at path /Users/mymacname/Library/Application Support/iPhone Simulator/6.0/Media/PhotoData/Thumbnails/120x120.ithmb: No such file or directory (2)
It is working in iPhone5 with iOS6 but issue in iPad only. 它可以在iPhone5和iOS6中使用,但仅在iPad中可用。
I found I had to launch "Photos" in the simulator before launching your app via Xcode (you only have to do this once). 我发现我必须先在模拟器中启动“照片”,然后才能通过Xcode启动您的应用程序(您只需执行一次)。 Launching it initializes something that needs to be there. 启动它会初始化需要存在的内容。 Also, you'll have to put some images there. 另外,您还必须在其中放置一些图像。 Easiest way is to launch Mobile Safari in the simulator go to google images and download a few images. 最简单的方法是在模拟器中启动Mobile Safari,然后转到Google图片并下载一些图片。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.