AppDelegate 添加如下代码
uinavroot 为故事版 UINavigationController 中的定义,需要在 xcode ide中定义。
public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions)
{
Window = new UIWindow (UIScreen.MainScreen.Bounds);
UIStoryboard sb = UIStoryboard.FromName ("MainStoryboard",null);
UINavigationController nai = sb.InstantiateViewController ("uinavroot") as UINavigationController;
Window.RootViewController = nai;
Window.MakeKeyAndVisible ();
return true;
}
转载于:https://www.cnblogs.com/mendeliang/p/5070854.html
相关资源:JAVA上百实例源码以及开源项目