I have a space-separated string like @"abc xyz http://www.example.com aaa bbb ccc".
@"abc xyz http://www.example.com aaa bbb ccc"
How can I extract the substring @"http://www.example.com" from it?
@"http://www.example.com"
Try this:
[yourString substringToIndex:<#(NSUInteger)#>]; //or [yourString substringFromIndex:<#(NSUInteger)#>]; //or [yourString substringWithRange:<#(NSRange)#>];