How to assign self to another class object, while navigating to another view controller with out segue
<p>I am using below code to navigate to another view controller, i want to assign this self to a delegate of another class, how do i do it ?</p>

<pre><code>UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];

UINavigationController *controller = [storyboard instantiateViewControllerWithIdentifier:@"storyBoardID"];

self.navigationController presentViewController:controller animated:YES completion:nil];
</code></pre>