试图获得rectange。使用AppKit我只使用NSRect,它就像一个魅力。在iOS上我失败了:
(lldb) e @import UIKit
(lldb) e @import CoreGraphics
(lldb) e @import Foundation
(lldb) po (CGRect)$rax
error: 'CGRect' is an incomplete type
forward declaration of 'CGRect'
我遇到类似的问题(矩形问题)
(lldb) po [$rdi bounds]
error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=EXC_I386_GPFLT).
The process has been returned to the state before expression evaluation.