Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

崩溃 #2

Open
tanghe opened this issue Dec 10, 2016 · 0 comments
Open

崩溃 #2

tanghe opened this issue Dec 10, 2016 · 0 comments

Comments

@tanghe
Copy link

tanghe commented Dec 10, 2016

在MJRefreshComponent.m文件中,- (NSString *)localizedStringForKey:(NSString *)key withDefault:(NSString *)defaultString方法崩溃,原因是当前项目如果是英文环境,如下代码未做安全判断,崩溃
NSRange range = [language rangeOfString:@"-" options:NSBackwardsSearch];
language = [language substringToIndex:range.location];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant