开发者

printing text as a paragraph(indentation) in uitextview in iphone

开发者 https://www.devze.com 2023-03-14 19:50 出处:网络
A basic functiona开发者_运维问答lity I am trying to implement in UITextView. I have a text (NSString) and I am trying to place in to the text field as a paragraph (indentation). Is it possible? I hav

A basic functiona开发者_运维问答lity I am trying to implement in UITextView.

I have a text (NSString) and I am trying to place in to the text field as a paragraph (indentation). Is it possible? I have seen many links but none of them have an exact answer.

We have a property named textAlignment but it is for left, right or center not indention.

Can anyone suggest how to implement this?


You should consider using a UIWebView if your displayed text has formatting. Using textViews and labels quickly renders the code to complex.


Possible solution in this post - as the first answer suggested, use a UIWebView.

0

精彩评论

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