开发者

Can I add a newline and an HTML link in UITextView?

开发者 https://www.devze.com 2023-04-07 14:23 出处:网络
Messing about with interface builder for the first time, exploring my options. Text seems to be in one long batch--found another thread where someone was importing an SQL db, but I just want to type s

Messing about with interface builder for the first time, exploring my options. Text seems to be in one long batch--found another thread where someone was importing an SQL db, but I just want to type something with a CR. Or should I jus开发者_开发问答t make a new TextView item for that?

I've also found threads complaining about autodetected links, but I'm not getting those—links are simply treated as plain text. Not that surprising, but is there a way to turn autodetect on somehow?


In Interface Builder, there is an "Detection" panel where you can check a checkbox to detect links. But it isn't detecting HTML, just text that is in the form of a URL. As for carriage returns, though, a UITextView should be able to handle those just fine.

If you want to deal with HTML, though, you should look at a UIWebView.

0

精彩评论

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

关注公众号