Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hakuba.registerCellsByNib cannot be used #39

Open
bijy opened this issue Apr 8, 2016 · 1 comment
Open

hakuba.registerCellsByNib cannot be used #39

bijy opened this issue Apr 8, 2016 · 1 comment

Comments

@bijy
Copy link

bijy commented Apr 8, 2016

hakuba.registerCellsByNib(HomeHeaderViewCell.self,HomeTopEvaluateViewCell.self)
error: Generic parameter 'T' could not be inferred

class HomeHeaderViewCell: Cell,CellType {

typealias CellModel = HomeHeaderViewModel

override func awakeFromNib() {
    super.awakeFromNib()
    // Initialization code
}

override func configure() {

}

override func setSelected(selected: Bool, animated: Bool) {
    super.setSelected(selected, animated: animated)

    // Configure the view for the selected state
}

}
class HomeTopEvaluateViewCell: Cell,CellType {

typealias CellModel = HomeTopEvaluateViewModel

override func awakeFromNib() {
    super.awakeFromNib()
    // Initialization code
}

override func setSelected(selected: Bool, animated: Bool) {
    super.setSelected(selected, animated: animated)

    // Configure the view for the selected state
}

}

@nghialv
Copy link
Owner

nghialv commented Apr 8, 2016

@bijy Sorry, i forgot to remove it.
Please use the following way to register multiple cells:

hakuba
    .registerCellByNib(Cell1)
    .registerCellByNib(Cell2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants