Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在ios10出现兼容问题? #459

Closed
tunfo opened this issue Aug 15, 2016 · 16 comments
Closed

在ios10出现兼容问题? #459

tunfo opened this issue Aug 15, 2016 · 16 comments

Comments

@tunfo
Copy link

tunfo commented Aug 15, 2016

在ios10无论是单行还是多行,最后都会有...省略号。如果是多行的话最后一行会被吃掉。比如三行的文字,只显示2行,第三行没有了。

@ibireme
Copy link
Owner

ibireme commented Aug 16, 2016

同样的代码,是只在 iOS 10 上有问题,还是在其他版本也有问题?

@suricforever
Copy link

只在 iOS 10 上,其它版本都是好的

@wy19901227
Copy link

没ios10机子,关注中。。

@tunfo
Copy link
Author

tunfo commented Aug 27, 2016

只在ios10上有问题(真机上跑的,模拟器还没下载)

@junbinchencn
Copy link

同样也出现了这个问题

@zhangxqq
Copy link

zhangxqq commented Sep 7, 2016

我的也是,如果把字体设置为9的默认字体,helvetica就正常了,否则就是少显示一行

@itdongbaojun
Copy link

同样遇到了该问题,今天刚刚设计的iOS10 GM版本

@itdongbaojun
Copy link

@ibireme 今天在适配iOS 10发现了同样的问题,应该是iOS10的字体变化导致的。

@ZengyiMa
Copy link

ZengyiMa commented Sep 9, 2016

我没这个问题,检查下高度有没有给足试试,我今天试试GM 调整下高度就好啦

@itdongbaojun
Copy link

@ZengyiMa 高度怎么给?是通过YYText的方法动态计算出来的高度,难道是需要在计算出来的基础上额外增加一点高度吗?

@itdongbaojun
Copy link

现在目前的解决方式是,通过YYTextLayout计算完size后,需要在计算出来的height的基础上稍微调整高度大一些

ibireme added a commit that referenced this issue Sep 13, 2016
@ibireme
Copy link
Owner

ibireme commented Sep 13, 2016

Fixed: 01da280

iOS9 及以下的系统里,用计算好的 size 作为限制进行重新排版,排版结果是正常的;但是 iOS 10 里需要一个更大的 size 来作为限制进行排版。不清楚这是 CoreText 的 bug 还是其他什么原因。

目前修改了 YYTextLayout 来进行额外的处理,避免了这个问题。

@wy19901227
Copy link

👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻👍🏻

发自我的 iPhone

在 2016年9月13日,11:44,Yaoyuan [email protected] 写道:

Fixed: 01da280


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

@wy19901227
Copy link

啥时候更新pod?

发自我的 iPhone

在 2016年9月13日,11:44,Yaoyuan [email protected] 写道:

Fixed: 01da280


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

@ibireme
Copy link
Owner

ibireme commented Sep 13, 2016

已更新

@ibireme ibireme closed this as completed Sep 13, 2016
@mghnmtt
Copy link

mghnmtt commented Sep 27, 2016

中文和表情 多行 iOS 10 下还是会出现。。。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants