I have a text with http:// in NSString. I want to get that http link from the NSString. How can i get the link/url from the string? Eg: ‘Stack over flow is very useful link for the beginners https://stackoverflow.com/‘. I want to get the ‘https://stackoverflow.com/‘ from the text. How can i do this? Thanks in advance.
Share
I am not sure what you exactly mean by link but if you want to convert your NSString to NSURL than you can do the following:
EDIT
This is how to get all URLs in a given NSString: