objective-c - iOS NSLocaleCurrencySymbol 失效,人命币符号只显示一横
PHP中文网
PHP中文网 2017-04-17 13:30:17
0
2
377
NSLocale *locale = [[NSLocale alloc] initWithLocaleIdentifier:@"zh_CN"]; NSString *strSymbol = [locale objectForKey:NSLocaleCurrencySymbol]; NSLog(@"%@",strSymbol);

在测试Demo中可以正常显示人民币符号.
在项目中用NSLog输出也可以正常显示,但是在手机中测试只显示一横 (人命币符号是两横),帮我推测一下大概是什么原因

PHP中文网
PHP中文网

认证高级PHP讲师

reply all (2)
巴扎黑

The one-horizontal and double-horizontal RMB symbols are同一个字符, which only correspond to同一个编码in the coding table, but different fonts have different display effects

    黄舟

    The horizontal line is also the RMB symbol, but the fonts are different

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!