UIImagePickerController does not work correct on ios 9.3 iPad 4

此生再无相见时 提交于 2019-11-28 20:31:06

问题


After update ipad to ios 9.3 images are stop to display. What can be wrong with it? On iOS 9 and iOS 9.2 that was work as well. On other devices iPhone devices all work fine.

 private func presentPickerForLibrary() {
    let imagePicker = UIImagePickerController()
    imagePicker.allowsEditing = false
    imagePicker.sourceType = .PhotoLibrary
    imagePicker.delegate = self
    presentViewController(imagePicker, animated: true, completion: nil)
}


回答1:


Seems to be linked to iCloud Photo Library setting. Turning this on in Preferences fixes the issue for me.




回答2:


I'm seeing this as well in an older, non-universal, iPhone app when running it on an iPad running iOS 9.3. I do not see it when running on an iPad simulator, only an actual device.

I am not seeing it in a newer, universal iPhone/iPad app. It looks like the issue is only affecting iPhone apps when run in 2x/1x mode on an iPad running iOS 9.3.x

It looks like there is an open Rdar ticket describing the issue, https://openradar.appspot.com/25813088.

I also came across a thread on the Apple developer forms also describing the issue, https://forums.developer.apple.com/thread/43400.

The iPhone app I'm testing with is still using the now deprecated ALAssets API. It looks like [ALAsset thumbnail] is returning nil when running an iPhone app on an iPad running iOS 9.3.x, this may be related to why the UIImagePickerController is not displaying thumbnails.



来源:https://stackoverflow.com/questions/36289929/uiimagepickercontroller-does-not-work-correct-on-ios-9-3-ipad-4

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