Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #25 from mac-cain13/remove-dequeue
Browse files Browse the repository at this point in the history
Remove dequeueReusableCell(withIdentifier:) extension method
  • Loading branch information
mac-cain13 authored Sep 25, 2017
2 parents 151210a + 27748cc commit 4f9858b
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Library/UIKit/UITableView+ReuseIdentifierProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,11 @@ public extension UITableView {
return dequeueReusableCell(withIdentifier: identifier.identifier, for: indexPath) as? Identifier.ReusableType
}

/**
Returns a typed reusable table-view cell object for the specified reuse identifier and adds it to the table.

- parameter identifier: A R.reuseIdentifier.* value identifying the cell object to be reused.

- returns: The UITableViewCell subclass with the associated reuse identifier or nil if it couldn't be casted correctly.

- precondition: You must register a class or nib file using the registerNib: or registerClass:forCellReuseIdentifier: method before calling this method.
*/
@available(*, unavailable, message: "Use dequeueReusableCell(withIdentifier:for:) instead")
public func dequeueReusableCell<Identifier: ReuseIdentifierType>(withIdentifier identifier: Identifier) -> Identifier.ReusableType?
where Identifier.ReusableType: UITableViewCell
{
return dequeueReusableCell(withIdentifier: identifier.identifier) as? Identifier.ReusableType
fatalError()
}

/**
Expand Down

0 comments on commit 4f9858b

Please sign in to comment.