Hi, it's been a few years since I let needed to add a custom view controller on top of the Unity view. It used to be I could call:
UIWindow *window = [[[UIApplication sharedApplication] keyWindow];
UIViewController *theController = window.rootViewController;
And attach my view controller's view to that. But now I am seeing that window as nil. Is there a newer way to do this?
UIWindow *window = [[[UIApplication sharedApplication] keyWindow];
UIViewController *theController = window.rootViewController;
And attach my view controller's view to that. But now I am seeing that window as nil. Is there a newer way to do this?