13 lines
300 B
Objective-C
13 lines
300 B
Objective-C
#import "ARTNSURL+ARTUtils.h"
|
|
|
|
@implementation NSURL (ARTUtils)
|
|
|
|
+ (NSURL *)copyFromURL:(NSURL *)url withHost:(NSString *)host {
|
|
NSURLComponents *components = [NSURLComponents componentsWithURL:url resolvingAgainstBaseURL:YES];
|
|
components.host = host;
|
|
|
|
return components.URL;
|
|
}
|
|
|
|
@end
|