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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

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

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