ios-samples/Quotes/AppDelegate.cs

33 строки
776 B
C#
Исходник Обычный вид История

2012-09-19 22:41:34 +04:00
using System;
2015-01-19 18:09:40 +03:00
using Foundation;
using UIKit;
2012-09-19 22:41:34 +04:00
namespace Quotes
{
[Register ("AppDelegate")]
public partial class AppDelegate : UIApplicationDelegate
{
UIWindow window;
UINavigationController viewController = new UINavigationController ();
public override bool FinishedLaunching (UIApplication app, NSDictionary options)
{
window = new UIWindow (UIScreen.MainScreen.Bounds);
window.RootViewController = viewController;
window.MakeKeyAndVisible ();
// Create and push our master view controller
var allTheQuotes = new MasterViewController (null, NSBundle.MainBundle);
viewController.PushViewController (allTheQuotes, false);
return true;
}
static void Main (string[] args)
{
UIApplication.Main (args, null, "AppDelegate");
}
}
2015-01-19 18:09:40 +03:00
}