Skip to content

Instantly share code, notes, and snippets.

@SuperYeti
Created September 9, 2011 23:19
Show Gist options
  • Save SuperYeti/1207582 to your computer and use it in GitHub Desktop.
Save SuperYeti/1207582 to your computer and use it in GitHub Desktop.
using ExtUtil = MonoTouch.Dialog.Extensions.Util;
public static bool TOSAccepted
{
get
{
try
{
ExtUtil.Defaults.Init();
return ExtUtil.Defaults.BoolForKey("TOSAccepted");
}
catch
{
return false;
}
}
set
{
try
{
ExtUtil.Defaults.SetBool(value, "TOSAccepted");
}
catch{}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment