mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
code commented
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
import application = require("application");
|
import application = require("application");
|
||||||
|
|
||||||
// Specify custom UIApplicationDelegate.
|
// Specify custom UIApplicationDelegate.
|
||||||
|
/*
|
||||||
class MyDelegate extends UIResponder implements UIApplicationDelegate {
|
class MyDelegate extends UIResponder implements UIApplicationDelegate {
|
||||||
public static ObjCProtocols = [UIApplicationDelegate];
|
public static ObjCProtocols = [UIApplicationDelegate];
|
||||||
|
|
||||||
@ -15,11 +16,14 @@ class MyDelegate extends UIResponder implements UIApplicationDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
application.ios.delegate = MyDelegate;
|
application.ios.delegate = MyDelegate;
|
||||||
|
*/
|
||||||
|
|
||||||
// Observe application notifications.
|
if (application.ios) {
|
||||||
application.ios.addNotificationObserver(UIApplicationDidFinishLaunchingNotification, (notification: NSNotification) => {
|
// Observe application notifications.
|
||||||
console.log("UIApplicationDidFinishLaunchingNotification: " + notification)
|
application.ios.addNotificationObserver(UIApplicationDidFinishLaunchingNotification, (notification: NSNotification) => {
|
||||||
});
|
console.log("UIApplicationDidFinishLaunchingNotification: " + notification)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
application.mainModule = "app/mainPage";
|
application.mainModule = "app/mainPage";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user