我正在尝试访问,但没有从ActionBar中找到UINavigationBar,有人可以帮我吗?
let bar: ActionBar = this.page.getViewById<ActionBar>("bar");
bar.ios.nativeView // undefined
bar.nativeView // undefined
<ActionBar id="bar" class="action-bar" title="Recipients"></ActionBar>
好的,我弄清楚我在做Manoj Solution时做错了什么
<ActionBar id="bar" class="action-bar" title="Recipients" (loaded)="loadActionBar($event)"></ActionBar>
loadActionBar($event): void {
let bar: ActionBar = this.page.getViewById<ActionBar>("bar");
bar.nativeView // works
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句