intValue
为什么我不能在调试器中打印我的文本字段的文本?
Printing description of textField:
<UITextField: 0x8e65550; frame = (87 11; 194 18); text = '2'; autoresize = W+RM+H+BM; tag = 5; layer = <CALayer: 0x8e64040>>
(lldb) po textField.text.intValue
error: property 'text' not found on object of type 'UITextField *'
error: 1 errors parsing expression
(lldb) po textField.text
error: property 'text' not found on object of type 'UITextField *'
error: 1 errors parsing expression
(lldb) po textField
(UITextField *) $15 = 0x08e65550 <UITextField: 0x8e65550; frame = (87 11; 194 18); text = '2'; autoresize = W+RM+H+BM; tag = 5; layer = <CALayer: 0x8e64040>>