I am wanting to add a UIView
above my entire app. This part is easy:
UIView* myView = /* Your custom view */;
UIWindow* currentWindow = [UIApplication sharedApplication].keyWindow;
[currentWindow addSubview:myView];
My UIView
has a UIButton
as a subview and I am not sure what VC to set its target to since this view can show over the entire app.
What would I set the target to for a UIButton
that is part of UIWindow
? Is it possible to set the target to a singleton that I have?