Comments (3)
已找到原因:
在真机ios8下调试时发现,换行符是\n而不是\r\n,修改下面代码后运行正常了:
ChineseToPinyinResource.m文件的initializeResource方法中,把
from pinyin4objc.
把
NSArray *lines = [dictionaryText componentsSeparatedByString:@"\r\n"];
替换成
NSArray *lines = [dictionaryText componentsSeparatedByString:@"\r\n"];
if (lines.count < 10)
lines = [dictionaryText componentsSeparatedByString:@"\n"];
from pinyin4objc.
Xcode7真机调试,拼音返回的是中文,没有转成拼音。
from pinyin4objc.
Related Issues (16)
- kimziv你好 HOT 2
- 拼音转换错误 HOT 3
- 转换出错
- THX
- It's a good library
- xcode8,模拟器和真机转后还是汉字
- Is this more accurate than CFString kCFStringTransformMandarinLatin?
- 怎么区别开多音字? HOT 3
- 不能转换,不过解决了
- 转换结果是汉字的情况,可以参考下是否是这种原因 HOT 1
- 内存泄露怎么解决呢? HOT 1
- 内存问题和线程问题
- 多线程问题,有截图 HOT 1
- convertToneNumber2ToneMarkWithNSString [out of bounds exception]
- Will PinYin4Objc support arm64 ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pinyin4objc.