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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -