简体   繁体   English

iPad模拟器iOS6,未从UIImagePickerController照片库获取图像

[英]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.

相关问题 将图像保存到ios6设备中的照片库中时遇到的问题 - Facing issue in saving image to photo library in device for ios6 如何使用 UIImagePickerController 从照片库中删除图像 - How to delete an image from photo library using UIImagePickerController uiimagepickercontroller - 获取从照片库中选择的图像的名称 - uiimagepickercontroller - get the name of the image selected from photo library ios6中的UIImagePickerController追赶 - UIImagePickerController chashes in ios6 IOS6中的UIImagePickerController问题 - UIImagePickerController issue in IOS6 从iOS6中的UIImagePickerController中选择时,将风景图像转换为人像模式 - Convert landscape image to portrait mode when select from UIImagePickerController in iOS6 使用UIImagePickerController检索照片库中的选定图像 - Using UIImagePickerController to retrieve selected Image in photo Library 当我使用UIImagePicker从iPad的照片库中选择图像时,模拟器崩溃了 - when i pick image from Photos Library in iPad using UIImagePicker, simulator getting crashed 在iOS6中呈现UIImagePickerController时,应用程序崩溃 - App getting crash while presenting UIImagePickerController in iOS6 当在iOS4中使用UIImagePickerController从照片库中进行选择时,您可以先开始w / new吗? - When using the UIImagePickerController in iOS4 to pick from the photo library can you start w/newest first?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM