2012-09-19 22:06:30 +04:00
|
|
|
using System;
|
2015-01-19 18:09:40 +03:00
|
|
|
using CoreGraphics;
|
2012-09-19 22:06:30 +04:00
|
|
|
|
2015-01-19 18:09:40 +03:00
|
|
|
using Foundation;
|
|
|
|
using UIKit;
|
2012-09-19 22:06:30 +04:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
2012-09-19 22:06:30 +04:00
|
|
|
|
|
|
|
PinchLayout pinchLayout = new PinchLayout ();
|
2015-01-19 18:09:40 +03:00
|
|
|
pinchLayout.ItemSize = new CGSize (100.0f, 100.0f);
|
2012-09-19 22:06:30 +04:00
|
|
|
|
|
|
|
window.RootViewController = (new ViewController (pinchLayout));
|
|
|
|
window.MakeKeyAndVisible ();
|
2015-01-19 18:09:40 +03:00
|
|
|
|
2012-09-19 22:06:30 +04:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class Application
|
|
|
|
{
|
|
|
|
static void Main (string[] args)
|
|
|
|
{
|
|
|
|
UIApplication.Main (args, null, "AppDelegate");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|