Skip to content

Instantly share code, notes, and snippets.

@SuperYeti
Created September 28, 2011 04:54
Show Gist options
  • Save SuperYeti/1247022 to your computer and use it in GitHub Desktop.
Save SuperYeti/1247022 to your computer and use it in GitHub Desktop.
private static UINavigationController _navigation;
private static object navLock = new object();
public static UINavigationController navigation
{
get{
if(_navigation == null)
lock(navLock)
_navigation = new UINavigationController();
return _navigation;
}
set{
lock(navLock){
_navigation = value;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment