开发者

Prepopulating UITextView with data?

开发者 https://www.devze.com 2022-12-16 00:34 出处:网络
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 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号