Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @IBAction func addButton(_ sender: Any) {
- delegate?.select(sID: selectedID)
- dismiss(animated: true, completion: nil)
- }
- func select(sID: String) {
- performSegue(withIdentifier: "editSegue", sender: self);
- }
- override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
- if segue.identifier == "editSegue" {
- if let destinationVC = segue.destination as? NewController {
- destinationVC.selectedQueryID = selectedQueryID;
- print(βtestβ); //This gets printed normally
- }
- }
- }
Add Comment
Please, Sign In to add comment