Category Archives: iOS

Swift: Type Casting in For Loop

Okay. I need to jot this down somewhere, because i find myself googling this snippet, at least once a month.
It’s not complex, but for some reason, it’s constantly slipping off my mind!

for case let children as ElementNode in rootNode.children { }

LLDB + Xcode 8 Kung Fu

Printing Arrays
parray number pointer
poarray number pointer

Reading Method Parameters
register read $arg1 $arg2
memory read $arg1

Printing Objects in Swift
expr -O --language objc -- 0x1003183e0

Disassembling the current frame
disassemble --frame

Module Image
image list ModuleName