Lets say I want to do a
p uiTextFieldObj.frame
it will say error: property
'frame' not found on object of type 'UITextField *'
Is there any tricks I can do so I can get this to show?
You can do this:
p (CGRect)[uiTextFieldObj frame]
As of Xcode 4.5.2, printing properties in lldb using the dot syntax only seems to work for properties of objects defined in your app, not for properties defined by framework classes.
You can get it to print by doing [] notation instead of . notation:
Have you tried this?
print (CGRect)[textfieldObj frame]
Without the (CGRect) cast, it will most likely show an error saying that it doesn't know the return type. You can also just do:
po textfieldObj
which will show you the frame and some other information about the text field. the po debug command will call the objects -description method, which you can override to provide any information you like.
See An @import-ant Change in Xcode
LLDB’s parser for Objective-C can now go through any module used in your app and determine the types used for all functions and methods it defines
e @import UIKit;
po uiTextFieldObj.frame
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With