Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var imgListArray:[UIImage]?
- for image in (news?.images)! {
- if let url = URL(string: image) {
- if let data = try? Data(contentsOf: url) {
- if(imgListArray == nil) {
- imgListArray = [UIImage(data: data)!]
- } else {
- imgListArray?.append(UIImage(data: data)!)
- }
- }
- }
- }
- cell.newsImagesView.image = imgListArray?.first
- cell.newsImagesView.animationImages = imgListArray;
- cell.newsImagesView.animationDuration = 10
- cell.newsImagesView.startAnimating()
Add Comment
Please, Sign In to add comment