Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e778fb7

Browse files
wanghenghengEase
authored and
Ease
committed
代码路径有+号时,不能读取到代码内容的Bug
1 parent b4c3e50 commit e778fb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Coding_iOS/Util/OC_Category/NSString+Common.m‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ - (NSString *)URLEncoding
2626
NSString * result = (NSString *)CFBridgingRelease(CFURLCreateStringByAddingPercentEscapes( kCFAllocatorDefault,
2727
(CFStringRef)self,
2828
NULL,
29-
(CFStringRef)@"!*'();:@&=+,ドル/?%#[]",
29+
CFSTR("!*'();:@&=+,ドル/?%#[]"),
3030
kCFStringEncodingUTF8 ));
3131
return result;
3232
}
@@ -150,7 +150,7 @@ + (NSString *)handelRef:(NSString *)ref path:(NSString *)path{
150150
if (path.length > 0) {
151151
[result appendFormat:@"%@%@", ref.length > 0? @"/": @"", path];
152152
}
153-
return [result stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
153+
return [result URLEncoding];
154154
}
155155
- (CGSize)getSizeWithFont:(UIFont *)font constrainedToSize:(CGSize)size{
156156
CGSize resultSize = CGSizeZero;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /