Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
  2. if let destination = segue.destination as? ViewController {
  3. guard let index = self.tableView.indexPathForSelectedRow?.row else { return }
  4. destination.task = tasks[index]
  5. }
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement