use inherited class instead of UIResponder

This commit is contained in:
Vladimir Enchev
2015-08-04 15:16:34 +03:00
parent 94601ca9c7
commit 3d42e87ea1

View File

@@ -9,6 +9,10 @@ global.moduleMerge(appModule, exports);
export var mainModule: string;
class Responder extends UIResponder {
//
}
class Window extends UIWindow {
private _content: view.View;
@@ -206,7 +210,7 @@ exports.start = function () {
// This try-catch block here will catch JavaScript errors but no Objective C ones.
// TODO: We need to implement better error handling for our native calls and to use the "error" parameter of the iOS APIs.
UIApplicationMain(0, null, null, exports.ios && exports.ios.delegate ? NSStringFromClass(exports.ios.delegate) : NSStringFromClass(UIResponder));
UIApplicationMain(0, null, null, exports.ios && exports.ios.delegate ? NSStringFromClass(exports.ios.delegate) : NSStringFromClass(Responder));
}
catch (error) {
// At this point the main application loop is exited and no UI May be created.