File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Coding_iOS/Util/OC_Category Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ - (NSString *)URLEncoding
26
26
NSString * result = (NSString *)CFBridgingRelease (CFURLCreateStringByAddingPercentEscapes ( kCFAllocatorDefault ,
27
27
(CFStringRef)self,
28
28
NULL ,
29
- (CFStringRef) @ " !*'();:@&=+$,/?%#[]" ,
29
+ CFSTR ( " !*'();:@&=+$,/?%#[]" ) ,
30
30
kCFStringEncodingUTF8 ));
31
31
return result;
32
32
}
@@ -150,7 +150,7 @@ + (NSString *)handelRef:(NSString *)ref path:(NSString *)path{
150
150
if (path.length > 0 ) {
151
151
[result appendFormat: @" %@%@ " , ref.length > 0 ? @" /" : @" " , path];
152
152
}
153
- return [result stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding ];
153
+ return [result URLEncoding ];
154
154
}
155
155
- (CGSize)getSizeWithFont : (UIFont *)font constrainedToSize : (CGSize)size {
156
156
CGSize resultSize = CGSizeZero;
You can’t perform that action at this time.
0 commit comments