iPhone中的UItextView对齐段落 [英] UItextView Justify Paragraph in Iphone

查看:125
本文介绍了iPhone中的UItextView对齐段落的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在使用xCode的iPhone中使用UITextView来证明段落的正确性.

I want to justify a paragraph using UITextView in an iPhone using xCode.

我应该更改哪个属性来做到这一点.

What property should I change to do this.

预先感谢

推荐答案

照片说明了一切.您可以使用Alignment控件向左,居中或向右对齐文本.

Photo says it all. You could use the Alignment control to left, center or right justify text.

通过转到界面"构建器时的方式,选择UItextView&然后设置这些属性...

By the way this is got when you go to Interface builder, select that UItextView & then set these properties...

您可以通过代码执行-[yourTextView setTextAlignment:<#(UITextAlignment)#>

From code you could do - [yourTextView setTextAlignment:<#(UITextAlignment)#>

这篇关于iPhone中的UItextView对齐段落的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆