惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
Vercel News
Vercel News
Microsoft Azure Blog
Microsoft Azure Blog
爱范儿
爱范儿
N
Netflix TechBlog - Medium
Google DeepMind News
Google DeepMind News
H
Help Net Security
罗磊的独立博客
The Cloudflare Blog
J
Java Code Geeks
博客园 - 叶小钗
I
InfoQ
B
Blog
Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
腾讯CDC
月光博客
月光博客
博客园_首页
雷峰网
雷峰网
M
MIT News - Artificial intelligence
博客园 - 【当耐特】
美团技术团队
T
The Blog of Author Tim Ferriss
博客园 - 司徒正美

博客园 - freemobile

得物小程序解析data加解密算法 某物抓数据出现验证码的解析思路 excel中移除编辑限制的宏脚本 广西扬美古镇虚拟旅游 pip3快速下载paddle 2018年上半年越南数字广告营销市场情况 thinkphp5(tp5)中success跳转页面和弹窗问题解决 Could not find com.android.support.constraint:constraint-layout的问题解决 角摩网发布在线制作Epub、Mobi格式的电子书 电子书mobi的格式详解 ajax成功返回数据中存在多余字符的处理 zendstudio采用xdebug调试,断点不停的解决 jeecms运行出现 Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.解决 rsync进行不同服务器之间的数据同步 Linux常用操作 重置mysql数据库密码 windows下IIS+PHP解决大文件上传500错问题 linux下重置mysql的root密码 nginx下rewrite参数超过9个的解决方法
ecmobile中IOS版本中界面文字不显示的解决
freemobile · 2016-07-28 · via 博客园 - freemobile

查找以下方法。 
- (BOOL)setCurrentLanguageName:(NSString *)name
{
        BeeLanguage * lang = [self findLanguage:name];
        if ( nil == lang )
        {
                NSString * langPath = [[NSBundle mainBundle] pathForResource:name ofType:@"xml"];
                NSString * langPath2 = [[NSBundle mainBundle] pathForResource:name ofType:@"lang"];

                NSLog(@"%@ %@", langPath, langPath2);

                NSString * content = [NSString stringWithContentsOfFile:langPath encoding:NSUTF8StringEncoding error:NULL];
                if ( nil == content )
                {
                        content = [NSString stringWithContentsOfFile:langPath2 encoding:NSUTF8StringEncoding error:NULL];
                }
                //这里替换原来的内容--start
                if ( content == nil )
                {
                        NSString * defaultlangePath = [[NSBundle mainBundle] pathForResource:@"zh-Hans" ofType:@"lang"];
                        content = [NSString stringWithContentsOfFile:defaultlangePath encoding:NSUTF8StringEncoding error:NULL];
                }

                lang = [BeeLanguage language:content];
        }

        if ( lang )
        {
                lang.name = name;
                
                [self applyLanguage:lang];
                return YES;
        }
        
        return NO;

}