mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix a tab-view crash on Angular projects (iOS).
This commit is contained in:
@@ -499,7 +499,7 @@ export class TabViewStyler implements style.Styler {
|
||||
var tabBar = <UITabBar>v.ios.tabBar;
|
||||
let currentFont;
|
||||
|
||||
if (tabBar.items.count > 0) {
|
||||
if (tabBar.items && tabBar.items.count > 0) {
|
||||
let currentAttrs = tabBar.items[0].titleTextAttributesForState(UIControlState.Normal);
|
||||
if (currentAttrs) {
|
||||
currentFont = currentAttrs.objectForKey(NSFontAttributeName);
|
||||
|
||||
Reference in New Issue
Block a user