I have two ViewControllers. Let's call them aVC and bVC.
In aVC, I show an alertView. If you press a Button on that alertView, a segue is performed to bVC.
In bVC, something should happen when the view appears but only when triggered from that button in aVC.
I tried notifications.
When pressed Button of alertView in aVC, notification is posted. In viewDidLoad of bVC, I did addObserver for that notification, but this does not work.
I guess because the observer is added after post of the notification? That's only my guess.
I tried for hours to get that to work, but notifications does not seems to do the job.
So how can I call a method in bVC that is executed when the view appears triggered by that button of the alertview in aVC?