MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / constructor

Method constructor

packages/core/ui/page/index.ios.ts:388–393  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

386 public _presentedViewController: UIViewController; // used when our page present native viewController without going through our abstraction.
387
388 constructor() {
389 super();
390 const controller = UIViewControllerImpl.initWithOwner(new WeakRef(this));
391 controller.view.backgroundColor = this._backgroundColor;
392 this.viewController = this._ios = controller;
393 }
394
395 createNativeView() {
396 // View controller can be disposed during view disposal, so make sure to create a new one if not defined

Callers

nothing calls this directly

Calls 1

initWithOwnerMethod · 0.45

Tested by

no test coverage detected