leancloud / ChatKit-OC

此项目已经废弃,以后不再维护。我们推出了基于 Swift SDK 的 Chat Demo。
https://github.com/leancloud/swift-sdk-demo
MIT License
2.12k stars 461 forks source link

发现了聊天界面的问题; #341

Open ConnyYue opened 7 years ago

ConnyYue commented 7 years ago

Base Info for this issue

聊天中,短消息的占用长度有问题,发送“1”、发送“12”、发送“123”,占用相同的长度,显示效果其实是“1 ” “12 ” “123”

最新版 0.10.1

  1. ChatKit Version:0.7.17
  2. App-ID: XX
  3. Language:Objective-C
  4. iOS System Version:iOS10
  5. Prototype(是否是真机):YES
  6. Issue Type:Bug

1. How to repeat the problem.

聊天界面 发送1 12 123; 查看界面效果

2. Please help me in this way.

发送”1“的占用长度就是1个字符串的长度加两遍边距 发送“12”的占用长度就是1个字符串的长度加两遍边距 发送“123”的占用长度就是1个字符串的长度加两遍边距

3. Here is a Demo.

4. Here is my Debug log

wechatimg5222