iOS 7 - UITextView剪辑文本 [英] iOS 7 - UITextView clipping text

查看:144
本文介绍了iOS 7 - UITextView剪辑文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用

[_messageField setContentInset:UIEdgeInsetsMake(-8, -6, 0,0)];

这适用于iOS 6,但iOS 7似乎是在textview底部剪辑内容。下面显示的两个文本视图都具有相同的字体,文本和边缘插入。第3行不会出现在iOS 7中。

This works in iOS 6, but iOS 7 seems to be clipping content at the bottom of the textview. Both of the textviews shown below have the same font, text, and edge insets. Line 3 does not appear in iOS 7.

推荐答案

我成功使用

[_messageField setTextContainerInset:UIEdgeInsetsMake(0, 0, 0, 0)];

并根据需要进行调整。

这篇关于iOS 7 - UITextView剪辑文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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