0
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        var DestViewController : ProfileUpdateViewController = segue.destination as! ProfileUpdateViewController
        DestViewController.NameTextField.text = Namelbl.text
    }
Dharmesh Kheni
  • 71,228
  • 33
  • 160
  • 165
  • have you given segue a identifier? – Devil Decoder Jul 09 '18 at 07:34
  • Yes I did, but it gives out error optional found nil when unwrapping something. What I want is the label gets the data from an API Response and want to pass that data to a textfield from another VC – Yee Ket Jul 09 '18 at 09:52

0 Answers0