Hello !. i'm not speak good english...
I have an Cocossharp Game From android and i'm trying to pass it to IOS Plataform using Xamarin.IOS with cocossharp Nuget.
I need show an screen with pontuation using a IOS ViewController Class to show my interface with ads, BUT i need show this ViewController in Cocossharp game scene. I have tried with a static method in an IOS View Controller to get a Window bounds and instantiate a other view Controller, but it have FAILED, the class are created and show in main Window, BUT the screen return to a gameView in few secounds. My first code is here:
` // PASS THE VALUES FROM OTHER CLASS
Program.CountMovesA = CountMovesA;
Program.letSing = IsSong;
Program.WillFinish = true;
FinishinS.CountMovesA = CountMovesA;
THIS IS THE CODE IN MY STATIC METHOD IN OTHER CLASS var Windows = new UIWindow(UIScreen.MainScreen.Bounds); var controller = new FinishinS(); controller.View.BackgroundColor = UIColor.LightGray; Windows.RootViewController = controller; // make the window visible Windows.MakeKeyAndVisible();
PS: I have tried use the same code in the GameLayer view from cocossharp, but have failed with same problem, the screen fade away in few secounds.