NSAttributedString has no member yy_truncated
The error message "NSAttributedString' has no member 'yy_truncated'" means that the 'yy_truncated' property or method does not exist in the NSAttributedString class.
It is possible that you are using an outdated or incorrect version of the NSAttributedString class, or you may have made a typo in the property or method name.
To resolve this issue, you can try the following steps:
-
Make sure you are using the correct version of the NSAttributedString class. Check the documentation or resources for the version of iOS or macOS you are targeting.
-
Double-check the spelling and case of the property or method name. It is possible that you made a typo or used the wrong case.
-
If you are using a third-party library or framework that extends the functionality of NSAttributedString, make sure you have correctly imported or included it in your project.
-
If none of the above steps work, it is possible that the 'yy_truncated' functionality you are looking for is not available in NSAttributedString. In this case, you may need to find an alternative solution or approach to achieve the desired outcome.
原文地址: http://www.cveoy.top/t/topic/jbrT 著作权归作者所有。请勿转载和采集!