Skip to content

Instantly share code, notes, and snippets.

@sbooth
Created April 12, 2015 13:38
Show Gist options
  • Save sbooth/36f8df95ae36d56908a9 to your computer and use it in GitHub Desktop.
Save sbooth/36f8df95ae36d56908a9 to your computer and use it in GitHub Desktop.
pointerToString
func pointerToString(objRef: AnyObject) -> String {
let ptr: COpaquePointer = Unmanaged<AnyObject>.passUnretained(objRef).toOpaque()
return "\(ptr)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment