Fix UI issue: font size not consistent

This commit is contained in:
Mingshen Sun 2019-11-18 18:13:48 -08:00
parent a07f3af4e2
commit 24c9b9c526
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -155,6 +155,7 @@ class SettingsTableViewController: UITableViewController, UITabBarControllerDele
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = super.tableView(tableView, cellForRowAt: indexPath)
cell.textLabel?.font = UIFont.preferredFont(forTextStyle: .body)
cell.detailTextLabel?.font = UIFont.preferredFont(forTextStyle: .body)
cell.textLabel?.adjustsFontForContentSizeCategory = true
cell.detailTextLabel?.adjustsFontForContentSizeCategory = true
return cell