dequeueReusableCellWithIdentifier shold return UITableViewCell

Originator:konstantin.koval1
Number:rdar://20083115 Date Originated:07-Mar-2015 05:36 PM
Status:Duplicate of 19491544 (Open) Resolved:
Product:Developer Tools Product Version:Xcode-beta 3 (6D532l)
Classification:Feature (New) Reproducible:Always
 
Summary:

dequeueReusableCellWithIdentifier method of the UITableView now returns AnyObject.
It probably should return a UItableViewCell or be a generic to return a specific type.

Example:
    func dequeueReusableCellWithIdentifier(identifier: String, forIndexPath indexPath: NSIndexPath) -> UItableViewCell 
or this is even better
    func dequeueReusableCellWithIdentifier<Cell>(identifier: String, forIndexPath indexPath: NSIndexPath) -> Cell

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!