Skip to content

Instantly share code, notes, and snippets.

@mwrites
Last active October 8, 2017 09:52
Show Gist options
  • Save mwrites/1adf64ea4841b90abca552344f0b206f to your computer and use it in GitHub Desktop.
Save mwrites/1adf64ea4841b90abca552344f0b206f to your computer and use it in GitHub Desktop.
lldb cast address
(lldb) expr -l Swift -- import UIKit
(lldb) expr -l Swift -- let $pin = unsafeBitCast(0x7df67c50, to: MKPinAnnotationView.self)
(lldb) expr -l Swift -- print($pin.alpha)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment