So I have 2 VC's. In Sending VC I want to send data to Receive VC. I did this by PrepareForSegue in other projects, when making an UIButton. That worked perfect. But now I have created a function, that will jump to that VC when a condition is met. The function is as follows:
let vc = self.storyboard?.instantiateViewControllerWithIdentifier("Resultsviewcontroller") as! Resultsviewcontroller
let navigationController = UINavigationController(rootViewController: vc)
self.presentViewController(navigationController, animated: false, completion: nil)
It will jump to the VC, but not with the data I have declared in my PrepareForSegue function. How can I send data with a function like PrepareForSegue?
Also, when jumped to the receiving VC, it has a white line at the top. It looks like the status bar should be there, but in both VC's, I set that to "none". How can I remove that white line?