簡體   English   中英

模擬器中的照片應用無法正常工作

[英]Photos App in Simulator Not Working

所以我正在運行帶有iOS7.1模擬器的Xcode 5。 當我加載模擬器並轉到照片應用時,所有出現的就是這個。 只是一個完全空白的應用程序。 我知道我的模擬器上保存有圖像。 但是,即使我沒有,也應該說沒有照片等,並且它們應該是一個標簽欄。 我嘗試過重置內容設置。 有任何想法嗎? 在此處輸入圖片說明

編輯:在我的個人應用程序中,我也有這個。 盡管這只是我希望人們關注的事情,因為我懷疑這會影響外部內置應用程序:)

-(IBAction)selectPicturePressed:(id)sender
{
//Open a UIImagePickerController to select the picture
UIImagePickerController *imgPicker = [[UIImagePickerController alloc] init];
imgPicker.delegate = self;
imgPicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;

[self.navigationController presentViewController:imgPicker animated:YES completion:nil];
}
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)img editingInfo:(NSDictionary *)editInfo 
{

[picker dismissViewControllerAnimated:YES completion:nil];

//Place the image in the imageview
self.imgToUpload.image = img;
}

如果其他所有方法均失敗,則刪除Xcode(包括模擬器,樂器等)。然后轉到Apple Developers Downloads https://developer.apple.com/downloads/index.action ,找到最新版本的Xcode。 重新安裝,它應該可以修復模擬器照片應用。

對不起,如果我不應該發表評論,我只是想通了。 至少由於某種原因,對我來說,我在OS X垃圾箱中找到了一個名為“ 7.1”的文件夾。 恢復到“”〜“ /圖書館/應用程序支持/ iPhone模擬器/”修復了我的模擬器,現在照片應用程序可以完美運行了。

暫無
暫無

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

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