mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
fix(ios): Ensure ObserverClass is initialized (#8365)
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user