TNImageSliderViewController
TNImageSliderViewController copied to clipboard
Image from URL
Hey,
How do I load the image from URL?
I just figured it out.
Please, can you provide your way here? @harshmaur
Instead of loading the images from assets, you can do something like.
var imageData:[UIImage] = []
for data in swiftyVar["data"].arrayObject! {
let imageString = NSURL(string: "http://example.com/image.png")
let data = NSData(contentsOfURL: imageString!)
imageData.append(UIImage(data: data!)!)
}
self.imageSliderVC.images = imageData
However It is going to block the UI, I havent figured out how to load the image async with TNSlider.
thank you, 100000000 thank
2016-05-31 17:15 GMT+07:00 Harsh Maur [email protected]:
Reopened #15 https://github.com/frederik-jacques/TNImageSliderViewController/issues/15 .
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/frederik-jacques/TNImageSliderViewController/issues/15#event-676796882, or mute the thread https://github.com/notifications/unsubscribe/AIKUHHi59bRodaMw0_iUmkEs56GfytMnks5qHAo_gaJpZM4Ij-yw .