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;