Quantcast
Channel: iOS and tvOS
Viewing all articles
Browse latest Browse all 10823

add UIViewController.view to Unity view

$
0
0
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?

Viewing all articles
Browse latest Browse all 10823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>