From 06b9ecf80b31383e73bc6c712a94b91c3f7e54ec Mon Sep 17 00:00:00 2001 From: Darin Dimitrov Date: Sun, 23 Feb 2020 17:46:01 +0200 Subject: [PATCH] fix(ios): Ensure ObserverClass is initialized (#8365) --- .../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;