Xcode 6.1: cell classes automatically registered in code template for UICollectionViewController
| Originator: | whakkee | ||
| Number: | rdar://18999774 | Date Originated: | 17-Nov-2014 11:59 AM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 6.1 (6A1052d) |
| Classification: | Other Bug | Reproducible: | Always |
Summary: In the code template for a UICollectionViewController (both Swift and Objective-C), cell classes are automatically registered (within the viewDidLoad). If you use a storyboard (the default way), this results in the CollectionViewCells not being displayed. Steps to Reproduce: 1. create a new Cocoa Touch Class, based on UICollectionViewController 2. hook the new class up to a Collection View Controller on your storyboard 3. make sure numberOfSectionsInCollectionView and numberOfItemsInSection are not 0 4. run Expected Results: the default code should work, in a default situation. Actual Results: collectionViewCell(s) will not get displayed, despite numberOfSectionsInCollectionView and numberOfItemsInSection not being 0 Regression: - Notes: It would be better to change the template code of the UICollectionViewController, so that this line is commented out by default, or if there’s a comment line above. (The former would be better, I think)
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!