We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0cb2a2 commit f680679Copy full SHA for f680679
tns-core-modules/ui/tab-view/tab-view.ios.ts
@@ -499,7 +499,7 @@ export class TabViewStyler implements style.Styler {
499
var tabBar = <UITabBar>v.ios.tabBar;
500
let currentFont;
501
502
- if (tabBar.items.count > 0) {
+ if (tabBar.items && tabBar.items.count > 0) {
503
let currentAttrs = tabBar.items[0].titleTextAttributesForState(UIControlState.Normal);
504
if (currentAttrs) {
505
currentFont = currentAttrs.objectForKey(NSFontAttributeName);
@@ -595,4 +595,4 @@ export class TabViewStyler implements style.Styler {
595
}
596
597
598
-TabViewStyler.registerHandlers();
+TabViewStyler.registerHandlers();
0 commit comments