Skip to content

Instantly share code, notes, and snippets.

@luiseduardohdbackup
Forked from nicwise/gist:5772980
Last active August 29, 2015 14:08
Show Gist options
  • Save luiseduardohdbackup/fb73bc2cae86693980ac to your computer and use it in GitHub Desktop.
Save luiseduardohdbackup/fb73bc2cae86693980ac to your computer and use it in GitHub Desktop.
var foo = UIDevice.CurrentDevice.UniqueIdentifier;
var bar = UDID ();
Console.WriteLine (foo + "////" + bar);
return true;
}
public string UDID()
{
var device = UIDevice.CurrentDevice;
//if (this.IsDirectBinding)
//{
return NSString.FromHandle (Messaging.IntPtr_objc_msgSend (device.Handle, Selector.GetHandle ("uniqueIdentifier")));
//}
//return NSString.FromHandle (Messaging.IntPtr_objc_msgSendSuper (base.SuperHandle, Selector.GetHandle ("uniqueIdentifier")));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment