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
Allow access to the country function to update the table view cell from outside the framework.
Make this function public so it can be access in the implementation class.
public func country(for indexPath: IndexPath) -> Country { isFiltering ? filteredCountries[indexPath.row] : countries[indexPath.section][indexPath.row] }
By overriding the following method, can update the own cell.
public override func sectionIndexTitles(for tableView: UITableView) -> [String] { [] } public override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) let country = self.country(for: indexPath) cell.textLabel?.text = country.flag + " " + country.name cell.detailTextLabel?.text = country.prefix return cell }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Allow access to the country function to update the table view cell from outside the framework.
Make this function public so it can be access in the implementation class.
By overriding the following method, can update the own cell.
New Issue Checklist
Steps to reproduce
Expected result
Actual result
Environment
The text was updated successfully, but these errors were encountered: