如您所知,NSStrokeWidthAttributeName将在外部和在信件里面。有办法完成我的工作:
[attributedString addAttribute:NSStrokeWidthAttributeName value:strokeWidthNumber range:fullRange];
[attributedString addAttribute:NSStrokeColorAttributeName value:strokeColor range:fullRange];
[attributedString drawInRect:rect];
[attributedString addAttribute:NSStrokeColorAttributeName value:[UIColor clearColor] range:fullRange];
[attributedString drawInRect:rect];
但也存在性能问题。 有没有办法在没有性能问题的情况下完成我的工作?