Created
December 9, 2013 19:50
-
-
Save jamesmontemagno/7879584 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Checks if the operating system of the phone is 7.0 or higher | |
/// </summary> | |
/// <value><c>true</c> if is iOS7; otherwise, <c>false</c>.</value> | |
public static bool IsiOS7 | |
{ | |
get { return UIDevice.CurrentDevice.CheckSystemVersion (7, 0); } | |
} | |
User it like this: | |
if (Util.IsiOS7) { | |
window.TintColor = UIColor.Orange; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment