When you create a modal View Controller using code, the modal controller has the ability to access the presenting controller.
Please read following. This is the crux of question. I do not want to use delegates.
According to Apple docs:
When you present a view controller modally (either explicitly or implicitly) using the present(_:animated:completion:) method, the view controller that was presented has this property set to the view controller that presented it.
I want to set the value of a property of the presenting view controller. However, I don't create the VC in code. I use a segue from a button.
This gives error: Property afterAdd not found on object of type UIViewController:
self.presentingViewController.afterAdd = YES;
where the property afterAdd is set as follows:
@property (nonatomic) BOOL afterAdd;
Is there any way to set the value of a property in the presenting view controller when the link is by storyboard that is analogous to the above and does not involve using delegate methods?