I have the following situation:

The SecondViewController is inside the FirstViewController. Now, I want to add another subclass to FirstViewController, but from the secondViewController class, as in the image: 
I’ve been searching and I don’t think that this is possible. I already tried to instantiate the FirstViewController, access the “view to subview” and add as subview, but that wasn’t working:
FirstViewController *viewController = [[FirstViewController alloc] init];
[self.view addSubview:[viewController viewToAddAsSubView]];
Any tips/solution?
Thanks!
This is actually possible using NSNotificationCenter. Example below:
The above code should be placed in view 1 to “listen” for view 2 to send it a notification that your method in view 1 should be executed to add/edit whatever you want in view 1.
The code above will send the notification to view 1. Then in view 1 you’ll have a method somewhere like this: