Add nativeView in page.ios.ts and get the UIViewControler view as nativeView

This commit is contained in:
Panayot Cankov
2016-12-27 13:12:58 +02:00
parent e4bf9ec7b2
commit ac59c1b082

View File

@ -326,13 +326,21 @@ class UIViewControllerImpl extends UIViewController {
}
export class Page extends PageBase {
private _ios = UIViewControllerImpl.initWithOwner(new WeakRef(this));
public nativeView: UIView;
private _ios: UIViewControllerImpl;
public _enableLoadedEvents: boolean;
public _modalParent: Page;
public _UIModalPresentationFormSheet: boolean;
public _viewWillDisappear: boolean;
public _presentedViewController: UIViewController; // used when our page present native viewController without going through our abstraction.
constructor() {
super();
this._ios = UIViewControllerImpl.initWithOwner(new WeakRef(this));
this.nativeView = this._ios.view;
}
public requestLayout(): void {
super.requestLayout();
if (!this.parent && this.ios && this._nativeView) {