Prepopulating UITextView with data?
I have a UIText View that I need to populate with a link that can be gained from开发者_Go百科 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?
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.
精彩评论