簡體   English   中英

iPad模擬器iOS6,未從UIImagePickerController照片庫獲取圖像

[英]iPad simulator iOS6, not getting image from UIImagePickerController photo library

我剛剛用新的iOS6開發了一個應用程序。 我的Xcode版本是4.5.1。 我從UIImagePickerController選擇圖像時遇到一些問題。 選擇圖像時,出現以下錯誤,並且在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)

它可以在iPhone5和iOS6中使用,但僅在iPad中可用。

我發現我必須先在模擬器中啟動“照片”,然后才能通過Xcode啟動您的應用程序(您只需執行一次)。 啟動它會初始化需要存在的內容。 另外,您還必須在其中放置一些圖像。 最簡單的方法是在模擬器中啟動Mobile Safari,然后轉到Google圖片並下載一些圖片。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM