The UIDocumentMenuViewController for loading a file into the application. On the iPhone, this works, but not on the iPad. Using iOS9. Any idea what's wrong?
dmvc = UIDocumentMenuViewController(documentTypes: ["public.data"], inMode: .Import) dmvc!.delegate = self dmvc!.popoverPresentationController?.sourceView = addSongButton self.presentViewController(dmvc!, animated: true, completion: nil)
2016-06-07 09: 45: 45.256 Remember [2994: 977408] the behavior of the UICollectionViewFlowLayout is not defined because: 2016-06-07 09: 45: 45.260 Remember [2994: 977408] the element width must be less than the width of the UICollectionView for minus insertion sections and right values, minus inserting contents left and right. 2016-06-07 09: 45: 45.261 Memorize [2994: 977408] Relevant Instance of UICollectionViewFlowLayout <_UIAlertControllerCollectionViewFlowLayout: 0x1668e6e0>, and this is attached to; animations = {bounds.origin =; bounds.size =; position =; }; layer =; contentOffset: {0, 0}; contentSize: {0, 0}> collection view layout: <_UIAlertControllerCollectionViewFlowLayout: 0x1668e6e0>. 2016-06-07 09: 45: 45.262 Remember [2994: 977408] Make a symbolic breakpoint in UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger.
What I do not understand, why the error message refers to collectionView ? I do not use collectionView at all. Maybe the UIDocumentMenuViewController has it as an internal component?
ios ios9 uicollectionview
Jรกnos
source share