ios-samples/PinchIt/AppDelegate.cs

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

using System;
2015-01-19 18:09:40 +03:00
using CoreGraphics;
2015-01-19 18:09:40 +03:00
using Foundation;
using UIKit;
namespace PinchIt
{
[Register ("AppDelegate")]
public partial class AppDelegate : UIApplicationDelegate
{
UIWindow window;
public override bool FinishedLaunching (UIApplication app, NSDictionary options)
{
window = new UIWindow (UIScreen.MainScreen.Bounds);
2013-09-20 00:14:10 +04:00
if (UIDevice.CurrentDevice.CheckSystemVersion (7, 0)) {
app.SetStatusBarStyle (UIStatusBarStyle.LightContent, false);
var frame = window.Frame;
frame.Y = 20;
window.Frame = frame;
}
PinchLayout pinchLayout = new PinchLayout ();
2015-01-19 18:09:40 +03:00
pinchLayout.ItemSize = new CGSize (100.0f, 100.0f);
window.RootViewController = (new ViewController (pinchLayout));
window.MakeKeyAndVisible ();
2015-01-19 18:09:40 +03:00
return true;
}
}
public class Application
{
static void Main (string[] args)
{
UIApplication.Main (args, null, "AppDelegate");
}
}
}