Showing ViewController without Segue

BamAziziBamAzizi USMember ✭✭

Hi there I am using the following code in my AppDelegate.cs to move to a specific page upon receiving a notification

idViewController idVC = storyboard.InstantiateViewController ("idViewController") as idViewController;
window = new UIWindow (UIScreen.MainScreen.Bounds);
window.RootViewController = idVC;
window.MakeKeyAndVisible ();

it works fine, but if I navigate from this VC to another VC with the same way, then I get trouble. 70% works fine but often it shows the other VC for a sec and then returns back to source VC.

Any suggestion how to solve the problem? Bear in mind here I can't use segue

Thanks
Bam

Sign In or Register to comment.