我想用另一个 NSAttributedString 替换 NSAttributedString(其中包含 NSTextAttachments)的子字符串(例如 @"replaceString")。
我尝试使用 NSMutableAttributedString 的 mutableString,但结果是省略了其中的 NSTextAttachments。下面的答案不适用于我的情况。
我想用另一个 NSAttributedString 替换 NSAttributedString(其中包含 NSTextAttachments)的子字符串(例如 @"replaceString")。
我尝试使用 NSMutableAttributedString 的 mutableString,但结果是省略了其中的 NSTextAttachments。下面的答案不适用于我的情况。