1and2papa / CTAssetsPickerController

iOS control that allows picking multiple photos and videos from user's photo library.
MIT License
2.15k stars 550 forks source link

picker.defaultAssetCollection not working on iPad with form sheet presentation style #160

Closed armandzwan closed 8 years ago

armandzwan commented 8 years ago

picker.defaultAssetCollection = PHAssetCollectionSubtypeSmartAlbumUserLibrary;

Is not working for me, I'm getting a black popup (with empty navbar)

Tried different types, but only PHAssetCollectionSubtypeAlbumRegular gives me a working picker. But then the user has to tap an album first. This is not what I want.

What am I doing wrong?

screen shot 2015-10-07 at 10 57 34

1and2papa commented 8 years ago

Hi @armandzwan, the navigation bar is much thicker than an normal iPad app in your screenshot. It seems that your app was developed as an iPhone only app and run it in the 2x zoom view of iPad? It might be the reason as the picker use iOS 8's size class which Apple suggested for building universal apps.

Please try the demo app see whether it works fine. Thanks.

armandzwan commented 8 years ago

No it is not. It is an iPad App with just a big Navigation Bar.

armandzwan commented 8 years ago

Hi,

It is still not working. Can you reopen this?

1and2papa commented 8 years ago

Hi @armandzwan, confirmed that this issue only happens on iPad with form sheet presentation style. Will fix it.

armandzwan commented 8 years ago

Thanks!

1and2papa commented 8 years ago

@armandzwan Please update to v3.3.1.

armandzwan commented 8 years ago

Sorry, forgot to inform you it is fixed!