fixed crash on ios7 user device

fixed that string property of NSURLComponents can`t use on iOS7
This commit is contained in:
Ahn Jung Min 2016-06-06 04:42:02 +09:00
parent cb7a3db23c
commit 335a437b2e
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@
if (NSClassFromString(@"NSURLComponents") && [NSURLComponents instancesRespondToSelector:@selector(string)]) {
NSURLComponents *urlComponents = [[NSURLComponents alloc] initWithURL:url resolvingAgainstBaseURL:NO];
urlComponents.query = nil; // Strip out query parameters.
return urlComponents.string;
return [urlComponents.URL absoluteString];
} else {
return [url absoluteString];
}