作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个显示表达式的标签:
(x+y)
但我想在这样的标签中显示它:
(x+y)^2
(但是有学位,我这里做不到,因为我声望太低,不能插入图片)
所以,我想在 UIlabel 中显示表达的程度。可以使用单个 UILabel 吗?
最佳答案
你可以使用上标两个\u00B2
的Unicode字符,它总是\u
后跟字符代码。
NSString *equation = [NSString stringWithFormat:@"(x+y)%@", @"\u00B2"];
swift :
var equation = NSString(format:"(x+y)%@", "\u{00B2}") as String
结果:
Strings and Characters (苹果 iOS 开发者库)
关于ios - 如何在 UILabel 中显示表达程度? ( swift ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31895590/
我目前正在研究数据库,我看到 degree 和 cardinality 用作相同的术语,或在某些其他学位定义为否。关系中涉及的实体的数量,并进一步分类为一元、二元和三元。 某些放置度数定义为关系类型的
我是一名优秀的程序员,十分优秀!