-[UICollectionView initWithFrame:collectionViewLayout:] documentation incorrect

Originator:ryan
Number:rdar://15691954 Date Originated:18-Dec-2013 12:22 PM
Status:Closed Resolved:13-Feb-2014 09:30 AM
Product:Documentation Product Version:7.0.4
Classification:Other Bug Reproducible:Always
 
Summary:
The documentation for -[UICollectionView initWithFrame:collectionViewLayout:] says that the layout may be specified as nil. When the layout is specified as nil an exception is thrown that says "UICollectionView must be initialized with a non-nil layout parameter"

Steps to Reproduce:
Run this line:
[[UICollectionView alloc] initWithFrame:CGRectZero collectionViewLayout:nil]

Expected Results:
The UICollectionView should initialize without an exception being thrown.

Actual Results:
An exception is thrown

Comments


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!