From 229f1eba3cf6a829d4fb4a9a0ed3bd163175ae24 Mon Sep 17 00:00:00 2001 From: Darin Dimitrov Date: Fri, 21 Feb 2020 17:37:56 +0200 Subject: [PATCH] fix(ios): Ensure ObserverClass is initialized --- .../ui/core/control-state-change/control-state-change.ios.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nativescript-core/ui/core/control-state-change/control-state-change.ios.ts b/nativescript-core/ui/core/control-state-change/control-state-change.ios.ts index e903adebf..4b4f27b3e 100644 --- a/nativescript-core/ui/core/control-state-change/control-state-change.ios.ts +++ b/nativescript-core/ui/core/control-state-change/control-state-change.ios.ts @@ -22,7 +22,7 @@ export class ControlStateChangeListener implements ControlStateChangeListenerDef private _callback: (state: string) => void; constructor(control: UIControl, callback: (state: string) => void) { - this._observer = ObserverClass.alloc(); + this._observer = ObserverClass.alloc().init(); this._observer["_owner"] = this; this._control = control; this._callback = callback;