Skip to content

Commit 87a1299

Browse files
committed
对iOS7的支持问题
修复一个低级错误:将containsString:换为rangeOfString:
1 parent 24008cf commit 87a1299

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MJRefresh.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'MJRefresh'
3-
s.version = '3.1.8'
3+
s.version = '3.1.9'
44
s.summary = 'An easy way to use pull-to-refresh'
55
s.homepage = 'https://github.com/CoderMJLee/MJRefresh'
66
s.license = 'MIT'

MJRefresh/NSBundle+MJRefresh.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ + (NSString *)mj_localizedStringForKey:(NSString *)key value:(NSString *)value
4343
if ([language hasPrefix:@"en"]) {
4444
language = @"en";
4545
} else if ([language hasPrefix:@"zh"]) {
46-
if ([language containsString:@"Hans"]) {
46+
if ([language rangeOfString:@"Hans"].location != NSNotFound) {
4747
language = @"zh-Hans"; // 简体中文
4848
} else { // zh-Hant\zh-HK\zh-TW
4949
language = @"zh-Hant"; // 繁體中文

0 commit comments

Comments
 (0)