Skip to content

Instantly share code, notes, and snippets.

@jamesmontemagno
Created December 9, 2013 19:50
Show Gist options
  • Save jamesmontemagno/7879584 to your computer and use it in GitHub Desktop.
Save jamesmontemagno/7879584 to your computer and use it in GitHub Desktop.
/// <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