Merge pull request #1058 from NativeScript/tab-view-selectedIndex

selectedIndex behavior when no tabs fixed
This commit is contained in:
Vladimir Enchev
2015-11-09 10:52:24 +02:00
2 changed files with 42 additions and 0 deletions

View File

@@ -227,6 +227,10 @@ export class TabView extends common.TabView {
// When we set this._ios.viewControllers, someone is clearing the moreNavigationController.delegate, so we have to reassign it each time here.
this._ios.moreNavigationController.delegate = this._moreNavigationControllerDelegate;
if (this._ios.selectedIndex !== this.selectedIndex) {
this._ios.selectedIndex = this.selectedIndex;
}
}
public _getIcon(iconSource: string): UIImage {