Daniel Hsieh
Daniel Hsieh
計算高度的時候 attributedString的align先不要設置center就能正確算出。
我是都直接用YYTextLayout+NSAttributedString 去算文字高度or寬度
> > 我是都直接用YYTextLayout+NSAttributedString 去算文字高度or寬度 > > 结果正确吗?我当时应该使用过,结果应该是一样的,因为里面的sizefit也是用这个。 你的文字內容基本上不會錯~我遇到有問題的都是很極端的unicode字元才可能會在顯示上怪怪的 高度計算出來沒有錯
@daviad 感謝大大提供解法 我用swizzle方式直接放入專案中,等大大更新了再拿掉即可 https://gist.github.com/g761007/9f12c5de4d77de8cff74ea9456a055ff
使用category的方式,直接新增檔案到自己專案 ``` // // YYKVStorage+IOS18.h // @interface YYKVStorage (IOS18) @end ``` ``` // // YYKVStorage+IOS18.m // #import #if __has_include() #import #else #import "sqlite3.h" #endif #import "YYKVStorage+IOS18.h" @implementation YYKVStorage (IOS18) +...
I am facing the same issue, waiting to get this problem fixed.
I noticed the slow part is in xcodebuild archive, but i don't know how to solve this issue.
ref. https://github.com/ibireme/YYCache/issues/166#issuecomment-2896483720