I have a UIViewController
which contains a UIView Subclass
, from the subclass I want to call a method defined in the UIViewController
which contains it. I do not want to instantiate a new instance of the view controller, because it contains information that I need within the method I am attempting to call. Here is a diagram trying to further clarify:
(UIViewController) MainView --> has method updateView
(UIView) SubView ---> Has Button that plays animation and has completion block
I want to call UpdateView
in the completion block