Skip to content

Instantly share code, notes, and snippets.

@dannycabrera
Created October 3, 2013 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dannycabrera/6810662 to your computer and use it in GitHub Desktop.
Save dannycabrera/6810662 to your computer and use it in GitHub Desktop.
Xamarin.iOS check for system version iOS 7
int SystemVersion = Convert.ToInt16(UIDevice.CurrentDevice.SystemVersion.Split ('.') [0].ToString ());
if (SystemVersion >= 7) {
this.EdgesForExtendedLayout = UIRectEdge.None;
this.AutomaticallyAdjustsScrollViewInsets = false;
this.ExtendedLayoutIncludesOpaqueBars = false;
}
or
UIDevice.CurrentDevice.CheckSystemVersion (7, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment