Skip to content

Commit

Permalink
对iOS7的支持问题
Browse files Browse the repository at this point in the history
修复一个低级错误:将containsString:换为rangeOfString:
  • Loading branch information
520dev committed Jun 22, 2016
1 parent 24008cf commit 87a1299
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MJRefresh.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'MJRefresh'
s.version = '3.1.8'
s.version = '3.1.9'
s.summary = 'An easy way to use pull-to-refresh'
s.homepage = 'https://github.com/CoderMJLee/MJRefresh'
s.license = 'MIT'
Expand Down
2 changes: 1 addition & 1 deletion MJRefresh/NSBundle+MJRefresh.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ + (NSString *)mj_localizedStringForKey:(NSString *)key value:(NSString *)value
if ([language hasPrefix:@"en"]) {
language = @"en";
} else if ([language hasPrefix:@"zh"]) {
if ([language containsString:@"Hans"]) {
if ([language rangeOfString:@"Hans"].location != NSNotFound) {
language = @"zh-Hans"; // 简体中文
} else { // zh-Hant\zh-HK\zh-TW
language = @"zh-Hant"; // 繁體中文
Expand Down

2 comments on commit 87a1299

@fishyminyu
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very good

@Qingchen99
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool

Please sign in to comment.