I\'m trying to learn Swift and I\'m trying to develop the famous note application.
There is an array bound to a tableview and another view for adding notes. At secon
It is not 'the' right way, but it is a right way. Especially in storyboard applications.
Here is an alternative way of passing value and calling the view.
var myNewVC = NewViewController() myNewVC.data = self navigationController?.presentViewController(myNewVC, animated: true, completion: nil)