NSLayoutConstraint conflict while presenting a UIDocumentMenuViewController

Number:rdar://27638144 Date Originated:01-Aug-2016
Status:Closed Resolved:12-Sep-2016
Product:iOS SDK Product Version:iOS 9.3.3
Classification:UI/Usability Reproducible:Always

When presenting UIDocumentMenuViewController console logs undefined layout issue - see log:

2016-08-01 17:42:33.331 bug[63679:1502146] the behavior of the UICollectionViewFlowLayout is not defined because:
2016-08-01 17:42:33.332 bug[63679:1502146] the item width must be less than the width of the UICollectionView minus the section insets left and right values, minus the content insets left and right values.
2016-08-01 17:42:33.332 bug[63679:1502146] The relevant UICollectionViewFlowLayout instance is <_UIAlertControllerCollectionViewFlowLayout: 0x7ffefaf830a0>, and it is attached to <UICollectionView: 0x7ffefc03f400; frame = (0 44; 10 0); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x7ffefaf83c10>; animations = { bounds.origin=<CASpringAnimation: 0x7ffefaf8e1f0>; bounds.size=<CASpringAnimation: 0x7ffefaf8e2e0>; position=<CASpringAnimation: 0x7ffefaf8e460>; }; layer = <CALayer: 0x7ffefaf83360>; contentOffset: {0, 0}; contentSize: {0, 0}> collection view layout: <_UIAlertControllerCollectionViewFlowLayout: 0x7ffefaf830a0>.
2016-08-01 17:42:33.332 bug[63679:1502146] Make a symbolic breakpoint at UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger.

Steps to Reproduce:
1) Open attached project
2) Add iCloud Documents entitlement to app target
3) Run project and click [Add image button]

Expected Results:
No layout issues, no menu flickering during controller presentation

Actual Results:
Slight delay during menu items presentation, layout issues reported in console

iOS 9.3.3, iOS 9.3.1

See also:

iPhone SE, iPad Air (1st gen)

'bug-UIDocumentMenuViewController-layout.zip' was successfully uploaded.


Closed 12-Sep-2016 08:27 PM

Please verify this issue with the iOS 10 GM seed and update your bug report at https://bugreport.apple.com/ with your results.

iOS 10 GM seed (Build: 14A403) https://developer.apple.com/download/ Posted Date: September 7th, 2016

If the issue persists and it's applicable to your bug report, please attach a new sysdiagnose captured in the latest build and attach it to the bug report.

iOS sysdiagnose Instructions: https://developer.apple.com/services-account/download?path=/iOS/iOS_Logs/sysdiagnose_Logging_Instructions.pdf

For a complete list of logging instructions visit: https://developer.apple.com/bug-reporting/profiles-and-logs/

By jkirsakmens at Jan. 8, 2017, 11:01 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!