Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

如果有大量的string 增加action,页面会卡顿 #72

Open
@burning-git

Description

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 做了缓存也是一样。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /