Created
September 18, 2013 15:21
-
-
Save mkuliszkiewicz/6610762 to your computer and use it in GitHub Desktop.
Utility to get url from a string.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface NSString (URLHelper) | |
- (NSURL *)urlFromString; | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "NSString+URLHelper.h" | |
@implementation NSString (URLHelper) | |
- (NSURL *)urlFromString | |
{ | |
return [NSURL URLWithString:self]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment