-
-
Save sash13/233138 to your computer and use it in GitHub Desktop.
This file contains 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
NSArray *words = [content componentsSeparatedByCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; | |
NSEnumerator *en = [words objectEnumerator]; | |
NSString *word; | |
NSMutableArray *ssl = [[NSMutableArray alloc] initWithCapacity:1]; | |
while(word = [en nextObject]) | |
{ | |
if([word hasPrefix:@"http://"]) | |
{ | |
NSLog(@"%@",word); | |
[ssl addObject:word]; | |
} | |
} | |
NSString *match = [ssl objectAtIndex:0]; | |
NSLog(@"info:%@ link:%@",contenti,match); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment