Guest User

Untitled

a guest
Nov 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. @IBAction func addButton(_ sender: Any) {
  2. delegate?.select(sID: selectedID)
  3. dismiss(animated: true, completion: nil)
  4. }
  5.  
  6. func select(sID: String) {
  7. performSegue(withIdentifier: "editSegue", sender: self);
  8. }
  9.  
  10. override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
  11. if segue.identifier == "editSegue" {
  12. if let destinationVC = segue.destination as? NewController {
  13. destinationVC.selectedQueryID = selectedQueryID;
  14. print(β€œtest”); //This gets printed normally
  15. }
  16. }
  17. }
Add Comment
Please, Sign In to add comment