Posts

Post not yet marked as solved
0 Replies
493 Views
Hello, tell me how you can fix this behavior in xcode 13, updating the cell height does not work. In xcode 12.5.1 works fine https://www.icloud.com/iclouddrive/0Wq4Ml4Zl_0Hk4XcQxrQ3FIwg#TableView     override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {         if isHideCell && indexPath.row == 1 {             return 0         } else {             return tableView.rowHeight         }     }     override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {         guard indexPath.row == 0 else { return }         isHideCell = !isHideCell         tableView.performBatchUpdates(nil) //        tableView.beginUpdates() //        tableView.endUpdates() //        tableView.reconfigureRows(at: [IndexPath(row: 1, section: 0)])         tableView.deselectRow(at: indexPath, animated: true)     }
Posted Last updated
.
Post not yet marked as solved
9 Replies
2.5k Views
Please tell me maybe you know how to do this. It is necessary to programmatically change the selected location. In iOS 13, you can select it in the settings. Interestingly, you can change in a local language change (if you changed the localization in the application) immediately.
Posted Last updated
.