What do you want to save?
Add Code snippet
New code examples in category Swift
-
T.Baugh 2021-08-31 20:02:01
how to get the path of selected PDF/doc from file manager in ios swift programmatically
// Get the document directory url let documentsUrl = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first! do { // Get the directory contents urls (including subfolders urls) let directoryContents = try FileManager.defaul... Add solution -
Neil McGuigan 2021-08-31 15:53:03
check and uncheck cells in uitableview swift 5
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { tableView.cellForRow(at: indexPath)?.accessoryType = .checkmark } func tableView(_ tableView: UITableView, didDeselectRowAt indexPath: IndexPath) { table... Add solution -
Try-catch-finally 2021-08-30 02:38:03
gap between table header uitableview
let myTableView : UITableView = { let tableView = UITableView(frame: .zero, style: .plain) tableView.register(TableCellClass.self, forCellReuseIdentifier: "cellId") tableView.backgroundColor = UIColor(red: 123/255, green:... Add solution