iOS 9.3无法使用在iPad上运行的iPhone应用程序从照片库中获取缩略图 [英] iOS 9.3 can not get thumbnail from photo library using iPhone App running on iPad

查看:193
本文介绍了iOS 9.3无法使用在iPad上运行的iPhone应用程序从照片库中获取缩略图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个配置为仅作为iPhone应用程序运行的iPhone应用程序。

We have had an iPhone App that's configured to run only as an iPhone App.

此应用程序的一个方面是无需任何问题即可访问照片库。直到iOS9.3,来自iPad4及以上的iPad模拟器根本不会显示照片大拇指。除了应该显示拇指的空白方块之外,它只显示其他内容。

One aspect of this App has been able to access the photo library without an issue whatsoever. That is until iOS9.3, where the iPad simulator, from iPad4 and up, will not display photo thumbs at all. It simply shows nothing other than a blank square where the thumb ought to be displayed.

现在,iPhone模拟器完全正常。图像拇指被ALAssetsLibary读入。

Now, the iPhone simulator works totally fine. Images thumbs are read into and by the ALAssetsLibary.

我已经了解到iOS9不再支持ALAssettsLibrary。当然,此对象的Apple Class Reference对所有方法都有一个红线: https://developer.apple.com/library/ios/documentation/AssetsLibrary/Reference/ALAssetsLibrary_Class/

I've learned that the ALAssettsLibrary is no longer supported on iOS9. Certainly the Apple Class Reference for this object has a redline through all of the methods: https://developer.apple.com/library/ios/documentation/AssetsLibrary/Reference/ALAssetsLibrary_Class/


  • **但如果是这样的话,为什么它仍然可以在iPhone设备上运行,即5,5S,5C,6,6S,6S Plus?

  • 为什么它不适用于iPad?

  • 有没有人有解决方法?**

我可以看到,如果应用程序配置为在iPad上运行的仅限iPhone的应用程序,会出现此问题吗?

I can see that this issue comes about if the App is configured an iPhone-only-app that's being run on an iPad?

我在Apple开发论坛网站上找到了这个链接:
https:/ /forums.developer.apple.com/thread/43400 ,民众和我有同样的问题?人们报告这是一个错误?

I found this link on the Apple dev forum site: https://forums.developer.apple.com/thread/43400, where folk are having the same issue as me? People are reporting this as a bug?

我也尝试下载这个,(下面的链接),也许是一种方法来解决我的问题:

I tried downloading this, too, (link below), as perhaps a means of slotting this in to fix my issues:

https://github.com/guillermomuntaner/GMImagePicker

它的行为方式与我在我的应用程序中描述的方式完全相同。

And it behaves in EXACTLY the same way I'm describing is happening in my App.


  • 有没有人见过这个?

现在编辑,因为这个链接到SO是一个完全相同的人问题还没有答案?

Editing now as this link to SO is an individual having exactly the same issue and no answers yet?

无法在iPhone模拟器中以iPhone分辨率运行时在相机胶卷中看到图像

推荐答案

好的 - 对于已阅读上述内容的任何人,我现在可以告诉你,iOS10修复了这个愚蠢的问题。

Ok - for anyone that has read the above, I can tell you now that iOS10 has fixed this silly issue.

这篇关于iOS 9.3无法使用在iPad上运行的iPhone应用程序从照片库中获取缩略图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆