summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS/Renderers/TabbedRenderer.cs
diff options
context:
space:
mode:
authorJason Smith <jason.smith@xamarin.com>2016-12-14 12:38:46 -0800
committerRui Marinho <me@ruimarinho.net>2016-12-14 20:38:46 +0000
commit9535315986c6ad5d51ec28f676310b9a5f7d444c (patch)
treed0492d1c6c35581040ca76aff4dc577c7227c840 /Xamarin.Forms.Platform.iOS/Renderers/TabbedRenderer.cs
parenteca25db80eebc2e7936f154246ed7996f6d071a1 (diff)
downloadxamarin-forms-9535315986c6ad5d51ec28f676310b9a5f7d444c.tar.gz
xamarin-forms-9535315986c6ad5d51ec28f676310b9a5f7d444c.tar.bz2
xamarin-forms-9535315986c6ad5d51ec28f676310b9a5f7d444c.zip
Deprecate versions of iOS older than 8 (#630)
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Renderers/TabbedRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.iOS/Renderers/TabbedRenderer.cs29
1 files changed, 4 insertions, 25 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/TabbedRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/TabbedRenderer.cs
index c6c07370..f0aa7c7f 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,15 @@ 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()
@@ -369,10 +351,7 @@ namespace Xamarin.Forms.Platform.iOS
// 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)