You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.0 KiB
34 lines
1.0 KiB
namespace CircleViewerMac
|
|
{
|
|
[Register("AppDelegate")]
|
|
public class AppDelegate : UIApplicationDelegate
|
|
{
|
|
public override UIWindow? Window
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
|
|
{
|
|
// create a new window instance based on the screen size
|
|
Window = new UIWindow(UIScreen.MainScreen.Bounds);
|
|
|
|
// create a UIViewController with a single UILabel
|
|
var vc = new UIViewController();
|
|
vc.View!.AddSubview(new UILabel(Window!.Frame)
|
|
{
|
|
BackgroundColor = UIColor.SystemBackground,
|
|
TextAlignment = UITextAlignment.Center,
|
|
Text = "Hello, Mac Catalyst!",
|
|
AutoresizingMask = UIViewAutoresizing.All,
|
|
});
|
|
Window.RootViewController = vc;
|
|
|
|
// make the window visible
|
|
Window.MakeKeyAndVisible();
|
|
|
|
return true;
|
|
}
|
|
}
|
|
}
|