简体   繁体   English

NSAttributedString指定范围?

[英]NSAttributedString specify range?

Is it possible to specify a range when using -[NSAttributedString initWithString:attributes:] ? 使用-[NSAttributedString initWithString:attributes:]时可以指定范围吗?

I know I can do it with NSMutableAttributedString , but I wanted to be more efficient by using NSAttributedString . 我知道我可以使用NSMutableAttributedString做到这一点,但是我想通过使用NSAttributedString来提高效率。

No. 没有。

Oh, 27 more characters: remember to profile before worrying about efficiency. 哦,还有27个字符:请记住在担心效率之前先进行简介。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM