From 839ef803cf26d80ac80b8bc8250db2319a7c1beb Mon Sep 17 00:00:00 2001 From: Greg Ledbetter Date: Tue, 9 Jun 2015 11:59:54 -0400 Subject: [PATCH] Use UserPreference synchronization for iOS 7. Not required for iOS 8. Set constraints EULA modal view for older 3.5" displays. --- StdTxGuide/StdTxGuide/Base.lproj/Main.storyboard | 13 +++++++++++-- StdTxGuide/StdTxGuide/ConditionViewController.swift | 3 +++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/StdTxGuide/StdTxGuide/Base.lproj/Main.storyboard b/StdTxGuide/StdTxGuide/Base.lproj/Main.storyboard index da7b802..9bd21ab 100644 --- a/StdTxGuide/StdTxGuide/Base.lproj/Main.storyboard +++ b/StdTxGuide/StdTxGuide/Base.lproj/Main.storyboard @@ -159,11 +159,11 @@ - + - + @@ -175,6 +175,15 @@ + + + + + + + + + diff --git a/StdTxGuide/StdTxGuide/ConditionViewController.swift b/StdTxGuide/StdTxGuide/ConditionViewController.swift index 824d87c..20980e7 100644 --- a/StdTxGuide/StdTxGuide/ConditionViewController.swift +++ b/StdTxGuide/StdTxGuide/ConditionViewController.swift @@ -66,6 +66,9 @@ class ConditionViewController: UIViewController, UITableViewDelegate, UITableVie } else { performSegueWithIdentifier("showModalEula", sender: self) userPrefs.setValue("true", forKey: "agreedToEula") + if (UIDevice.currentDevice().systemVersion as NSString).floatValue < 8.0 { + userPrefs.synchronize() + } }