如何显示“®"的上标注册符号? [英] How to show superscript for "®" registered symbol?

查看:225
本文介绍了如何显示“®"的上标注册符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个关于将注册符号显示为上标的问题.我使用了unicode值\ u00AE,但它显示在同一行中.我想将其保留在剩余文字的上方. 完成谷歌搜索,但发现Unicode站点中提到的A-Z上标,0-9个字符.

I've a issue regarding showing registered symbol as superscript. I've used unicode value \u00AE, but it shows in same line. I'd like to have it a bit top of remaining texts. Done googling, but found superscripts for A-Z, 0-9 characters, which is mentioned in unicode's site.

示例代码:

UILabel *myLabel; //do initialize stuff here

myLabel.text = @"My company\u00AE";

谢谢

推荐答案

Unicode没有上标形式的registered符号,因此唯一的方法是使用HTML控件并将其包含在上标标签中: <sup>&reg;</sup>

Unicode does not have a registered symbol in superscript form so the only way to do it is to use a HTML control and to include it into superscript tags: <sup>&reg;</sup>

您可以在 http://rishida.net/scripts/uniview/

这篇关于如何显示“®"的上标注册符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆