You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
list = ["s", "b"] // 大量 几千个
for i in list {
var att = ASAttributedString(string: "")
att += .init(string: i, .action {[weak label] in
print("点击单词:", token)
})
att += .init(string: " ")
}
label 显示 att ,会卡住页面,在tablew 滑动的时候,比较明显,即使 att 做了缓存也是一样。
The text was updated successfully, but these errors were encountered:
list = ["s", "b"] // 大量 几千个
for i in list {
var att = ASAttributedString(string: "")
att += .init(string: i, .action {[weak label] in
print("点击单词:", token)
}
label 显示 att ,会卡住页面,在tablew 滑动的时候,比较明显,即使 att 做了缓存也是一样。
The text was updated successfully, but these errors were encountered: