summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS/Renderers/TabbedRenderer.cs
diff options
context:
space:
mode:
authorPaul DiPietro <pauldipietro@users.noreply.github.com>2016-12-09 03:29:04 -0800
committerRui Marinho <me@ruimarinho.net>2016-12-09 11:29:04 +0000
commitc4b1c88f506ebf76a2a40f005b45ec9b24e46e1a (patch)
tree74a1d11fe3d9ff539f0e43c466f4b5092ad64b16 /Xamarin.Forms.Platform.iOS/Renderers/TabbedRenderer.cs
parent29a1529b7f762a75b6944f803c957638ce6dbed8 (diff)
downloadxamarin-forms-c4b1c88f506ebf76a2a40f005b45ec9b24e46e1a.tar.gz
xamarin-forms-c4b1c88f506ebf76a2a40f005b45ec9b24e46e1a.tar.bz2
xamarin-forms-c4b1c88f506ebf76a2a40f005b45ec9b24e46e1a.zip
Deprecate iOS 8 and earlier (#626)
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Renderers/TabbedRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.iOS/Renderers/TabbedRenderer.cs30
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)