是否可以制作一个带有某些字符作为下标和上标的 NSString ?
我的应用程序将具有化学公式(CO3^2-、H2O 等),因此我的应用程序中的某些文本需要具有下标和上标。是否可以使用 NSStrings 来做到这一点,或者是否有其他/更简单的方法来解决这个问题?
My app will have chemistry formulas (CO3^2-, H2O, etc), so some of the text in my app will need to have subscripts and superscripts. Is it possible to do this with NSStrings, or is there an alternative/easier way to go about this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅 NSAttributedString 。
See NSAttributedString.