如何在UILabel中更改截断字符? [英] How to change truncate characters in UILabel?

查看:183
本文介绍了如何在UILabel中更改截断字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

UILabel 的文本被截断时,默认情况下会插入3个点。
是否可以更改这些字符或禁用它们?

When the text of a UILabel gets truncated there are 3 dots inserted by default. Is it possible to change these characters or disable them?

推荐答案

为什么不编码来计算字符串的长度如果超出视图,则生成子串。或做任何你想要的事情
这是原始但有效的方法

why dont you code to count the length of string and makes its substring if its exceeding the view. or do anything you want It is raw but effective method

这篇关于如何在UILabel中更改截断字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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