SWIFT 3:
self.present(controller, animated: true, completion: nil)
self.present(controller, animated: true, completion: nil)
2017-08-05
stackflow上找的,末尾老師用的close()函數改為
@IBAction func unwindToViewControllerNameHere(segue: UIStoryboardSegue) {
//nothing goes here
}
Xcode 8.2.1 親測可用
@IBAction func unwindToViewControllerNameHere(segue: UIStoryboardSegue) {
//nothing goes here
}
Xcode 8.2.1 親測可用
2017-07-25
我按照這節課的敲處理return Editing 報錯 改成return isEditing 但是運行之后點擊Edit 不能滑動改變位置 沒有出現右邊的那個電話拖動的按鈕
2017-07-24
哈哈,昨天自己瞎琢磨半天,沒弄明白默認的倆tab怎么加第三個,今天幾分鐘看了就學會了。謝謝老師!
2017-07-13
if editingStyle == UITableViewCellEditingStyle.delete {
todos.remove(at: indexPath.row)
self.tableView.deleteRows(at: [indexPath], with: UITableViewRowAnimation.automatic)
// self.tableView.reloadData()
}
todos.remove(at: indexPath.row)
self.tableView.deleteRows(at: [indexPath], with: UITableViewRowAnimation.automatic)
// self.tableView.reloadData()
}
2017-05-25