diff options
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Renderers/TabbedRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/Renderers/TabbedRenderer.cs | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/TabbedRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/TabbedRenderer.cs index c6c07370..f7ca834c 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/TabbedRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/TabbedRenderer.cs @@ -134,14 +134,6 @@ namespace Xamarin.Forms.Platform.iOS _loaded = true; } - public override void ViewDidLoad() - { - base.ViewDidLoad(); - - if (!Forms.IsiOS7OrNewer) - WantsFullScreenLayout = false; - } - protected override void Dispose(bool disposing) { if (disposing) @@ -314,25 +306,14 @@ namespace Xamarin.Forms.Platform.iOS if (!_defaultBarColorSet) { - if (Forms.IsiOS7OrNewer) - _defaultBarColor = TabBar.BarTintColor; - else - _defaultBarColor = TabBar.TintColor; - + _defaultBarColor = TabBar.BarTintColor; _defaultBarColorSet = true; } if (!isDefaultColor) _barBackgroundColorWasSet = true; - if (Forms.IsiOS7OrNewer) - { - TabBar.BarTintColor = isDefaultColor ? _defaultBarColor : barBackgroundColor.ToUIColor(); - } - else - { - TabBar.TintColor = isDefaultColor ? _defaultBarColor : barBackgroundColor.ToUIColor(); - } + TabBar.BarTintColor = isDefaultColor ? _defaultBarColor : barBackgroundColor.ToUIColor(); } void UpdateBarTextColor() @@ -367,12 +348,7 @@ namespace Xamarin.Forms.Platform.iOS item.SetTitleTextAttributes(attributes, UIControlState.Normal); } - // set TintColor for selected icon - // setting the unselected icon tint is not supported by iOS - if (Forms.IsiOS7OrNewer) - { - TabBar.TintColor = isDefaultColor ? _defaultBarTextColor : barTextColor.ToUIColor(); - } + TabBar.TintColor = isDefaultColor ? _defaultBarTextColor : barTextColor.ToUIColor(); } void UpdateChildrenOrderIndex(UIViewController[] viewControllers) |