Graeme
Graeme

Reputation: 1327

Prepopulating UITextView with data?

I have a UIText View that I need to populate with a link that can be gained from currentItem.link. But I can't seem to work out how to populate the text view with the link.

I'm assuming you have to load the view with some sort of IBAction?

Upvotes: 1

Views: 570

Answers (1)

Nimrod
Nimrod

Reputation: 5133

You should be able to change the contents of a UITextView by setting its text property. For example, in your view controller just do:

self.myTextView.text = [NSString ... ];

If there's no myTextView property in your view controller, declare an IBOutlet for it as a property and connect the text view to that in Interface Builder.

Upvotes: 2

Related Questions