I have two uiviewcontroller and one of its has UITextView ... I want to load String to textview from both uiviewcontroller... i can able to load string to textview only one uiviewcontroller has contains textview... so how can i load string to textview from another uiviewcontroller...
A:
Make sure you have @property and @synthesize statements for the string and then in the UIViewController which has the textView, import (#import) the other UIViewController (which doesn't have a textView), and then you should be able to access it:
NSString *string=stringFromOtherViewController;
textView.text=string;
Felixs
2010-02-22 11:00:53