let tableView = UITableView(frame: .zero, style: .plain)
view.addSubview(tableView)
tableView.delegate = self
tableView.dataSource = self
tableView.separatorInset = UIEdgeInsetsMake(0,10, 0, 10)
let superview = self
tableView.mas_makeConstraints { make in
let _ = make?.edges.equalTo()(superview.view)
}
1.Xib中Identifier名字一致
var receiverIdentifier = "ReceiverListCell"
2.
let requesterNib = UINib(nibName: "ReceiverListCell", bundle: nil)
tableView.register(requesterNib, forCellReuseIdentifier: receiverIdentifier)
3.
let cell:ReceiverListCell? = tableView.dequeueReusableCell(withIdentifier: receiverIdentifier) as? ReceiverListCell