We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
cache the height to model, may is anythings you want
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: cellIdForMessage(msg:array[safe: indexPath.row]), for: indexPath) if let model = array[safe: indexPath.row] { cell.reloadData(data: model as Any) if (model.cellHeigth > CGFloat(0)) == false { let size = cell.contentView.systemLayoutSizeFitting(CGSize(width: YYScreenSize().width, height: 0), withHorizontalFittingPriority: .required, verticalFittingPriority: .fittingSizeLevel) model.cellHeigth = size.height } } return cell; }
The text was updated successfully, but these errors were encountered:
无论MVC还是MVVM-C,M都不应和V耦合
Sorry, something went wrong.
No branches or pull requests
cache the height to model, may is anythings you want
The text was updated successfully, but these errors were encountered: