方向角的国际格式?
我想向我的用户展示 20° 角度以及可能的罗盘航向,例如 N 或 NW。 iOS 中有处理角度的国际化数字格式化程序吗?我研究过 NSNumberFormatter,但它似乎面向货币和千位分隔符。
有谁知道我在哪里可以找到有它们的图书馆?我宁愿不必全部手工完成。
I'd like to present my users with an angles 20° and possibly a compass heading such as N or NW. Is there an internationalized number formatter in the iOS that handles angles? I've looked into NSNumberFormatter, but it seems to be oriented toward currencies and thousands separators.
Does anyone know where I can find a library that has them? I'd rather not have to do them all by hand.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,如果你下载了 cocos2d 框架,它有你可以使用的角度
http://www.cocos2d-iphone.org/
Well if you download the cocos2d framework, that has angles that you can use
http://www.cocos2d-iphone.org/