-
Notifications
You must be signed in to change notification settings - Fork 2
/
AppDelegate.pas
36 lines (26 loc) · 1023 Bytes
/
AppDelegate.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
namespace ZeroConfBrowser;
interface
uses UIKit;
type
AppDelegate = public class(NSObject, IUIApplicationDelegate)
protected
property window: UIWindow;
property navigationController: UINavigationController;
private
method applicationDidFinishLaunching(application: UIApplication);
method applicationWillTerminate(application: UIApplication);
end;
implementation
method AppDelegate.applicationDidFinishLaunching(application: UIApplication);
begin
window := new UIWindow withFrame(UIScreen.mainScreen.bounds);
//application.statusBarStyle := UIStatusBarStyle.UIStatusBarStyleLightContent;
var lNavigationController := new UINavigationController withRootViewController(new RootViewController);
lNavigationController.navigationBar.tintColor := UIColor.colorWithRed(0.8) green(0.0) blue(0) alpha(1.0);
window.rootViewController := lNavigationController;
self.window.makeKeyAndVisible;
end;
method AppDelegate.applicationWillTerminate(application: UIApplication);
begin
end;
end.