ios - "Use of undeclared identifier" -
i'm pretty new objective c. keep getting error
"use of undeclared identifier"
for line of code:
nsstring *textout1 = textout.text;
obviously trying pull textbox text. have declared following in h file
@property (weak, nonatomic) iboutlet uitextfield *textout;
so cannot understand why keep getting damn error. thanks!
use this:
nsstring *textout1 = _textout.text;
checkout underscore added in front of textout
read paragraph titled most properties backed instance variables in this apple documentation page.
Comments
Post a Comment