I have to display thumb image and get title of WEB URL same as LinkedIN app and Skype app in iOS?
Is there any Solution?
Here is the easiest way to find the favicon icon of URL
NSString *myURLString = @"http://www.google.com/s2/favicons?domain=www.facebook.com";
NSURL *myURL=[NSURL URLWithString: myURLString];
NSData *myData=[NSData dataWithContentsOfURL:myURL];
UIImage *myImage=[[UIImage alloc] initWithData:myData];
Swift Version:
let myURLString = "http://www.google.com/s2/favicons?domain=www.facebook.com"
let myURL = NSURL(string: myURLString)!
let myData = NSData.dataWithContentsOfURL(myURL)
let myImage = UIImage(data: myData)!
May this helps lot
UPDATE
Below is the swift library which helps to load images like you want.
URLEmbeddedView
Here You can check actual work of library.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With