iOS 9.3 can not get thumbnail from photo library using iPhone App running on iPad

余生颓废 提交于 2019-12-07 17:23:29

问题


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

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.

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

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/

  • **But if thats the case, why is is that it still functions on an iPhone device, that's 5, 5S, 5C, 6, 6S, 6S Plus?
  • And why will it not work on an iPad?
  • Has anyone got a workaround?**

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

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.

  • Has anyone seen this before?

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

Unable to see images in Camera roll in iPad Simulator when run at iPhone resolution


回答1:


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



来源:https://stackoverflow.com/questions/37032470/ios-9-3-can-not-get-thumbnail-from-photo-library-using-iphone-app-running-on-ipa

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!