Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

UIApplication.SharedApplication.Windows[0].RootViewController return null in Initialize() method

$
0
0

@Jorge_Arranz wrote:

Hi,

I have monogame 3.5.1.1679 Version nuget package in xamarin studio, in the initialize() method of may game, i try to get root viewcontroler like this:

var controller = UIApplication.SharedApplication.Windows[0].RootViewController;

but return null , RootViewController is null :frowning:

¿Is a bug?
¿Other way to get RootViewController?

Please help.

Thanks in advance, and sorry for my english.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles