Is it possible to use a custom UITableViewCell class as a nested type of the corresponding view controller? It seems like this would be a nice way to contain custom cell types.
class MyTableViewController: UITableViewController {
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as! MyTableViewController.Cell
cell.configure()
return cell
}
class Cell: UITableViewCell {
func configure() {
}
}
}And more importantly, is it possible to use such a nested type with prototype cells in a storyboard? From what I can tell with the lastest Xcode 7 beta (beta 4), it doesn't look like this is possible. Should I file a radar?
Thanks.