Hello!
What I basically want to do, is to set the label of a UITextView outside of a ViewController. Is that possible?
What I have tried is the following:
and the synthesize code in the .m file.
Then I tried to import myViewController.h in my other .m file and tried to access the TextView like this:
This however won't work. What do I need to do differently?
Thank you,
Alan
What I basically want to do, is to set the label of a UITextView outside of a ViewController. Is that possible?
What I have tried is the following:
Code:
@interface myViewController : UIViewController {
...
}
@property (nonatomic, retain) IBOutlet UITextView *outputTextField;
@end
and the synthesize code in the .m file.
Then I tried to import myViewController.h in my other .m file and tried to access the TextView like this:
Code:
outputTextField.text = @"test";
This however won't work. What do I need to do differently?
Thank you,
Alan