【发布时间】:2014-09-22 01:34:46
【问题描述】:
所以我正在运行 Xcode 5,带有 iOS7.1 模拟器。当我加载模拟器并转到照片应用程序时,出现的就是这个。只是一个完全空白的应用程序。我知道我的模拟器上保存了图像。但是,即使我没有,它也应该说没有照片等,它们应该是一个标签栏。我试过重置内容设置。有任何想法吗?
编辑:在我的个人应用程序中,我也有这个。虽然这只是我希望人们注意的事情,因为我怀疑它会影响外部内置应用程序:)
-(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;
}
【问题讨论】:
-
你如何展示你的照片选择器?
-
嗯,这仅适用于照片应用程序。但是,如果您也可以在我的个人应用程序中查看代码,我将不胜感激。我会在问题中添加它作为附加部分。
-
在模拟器中拖动一些图像并保存在相册中。然后检查。您的问题似乎在照片中找不到图像。
-
试过了,safari 加载时说文件不存在。然后我就去谷歌图片,然后把它们从他们的图片中保存下来。没有变化:/
标签: ios ios7 ios-simulator