I add a viewcontroller using
[self presentModalViewController:vectorView animated:YES];
But then from within would like to call a method inside the parent viewcontroller.
I read this question and found that something like this could be done to set a variable in the parent:
self.parentViewController.myString = aString;
But is there a way to call a method and send a few variables through that way?
For example
self.parentViewController.myMethod; //Which does not work
It’s no different from any other message you would send:
Note that the behavior of the
parentViewControllerproperty has changed in iOS 5: