error: property 'frame' not found on object of type 'UIView *' error: property 'frame' not found on object of type 'UIView *' ios ios

error: property 'frame' not found on object of type 'UIView *'


If you hate typecasting every time, you can try this:

(lldb) expr @import UIKit(lldb) po self.view.bounds

Since Xcode 7.2 is now available, I think we should update the answer.
I find the answer here, Why can't LLDB print view.bounds?


Try this

p (CGRect)[view frame]

Alternative to get the frame of the view:

po view


Try this,

po view.layer.frame.size.height