I add a UIView, minimisedInterface, to my view controller as normal
[self.view addSubview:minimisedInterface];
minimisedInterface is removed from the view controller, on a button tap.
[self removeFromSuperview];
I now want to re-add the minimisedInterface to the view controller, but on a button tap in another class, Interface.
What is the correct way to do this? I was considering getting a handle on the view controller from the Interface class but this seems a little counter-intuitive, as if one shouldn’t “control” the view controller itself.
Thanks in advance 🙂
The two likeliest ways that come to mind are: