0

Hi I have an array with URLS. How to display all images in UIScrollView like this: Link

I want to fill all space in UIScrollView with these 100 images?

Bogdan Bogdanov
  • 902
  • 8
  • 34
  • 69

1 Answers1

0

I would suggest using a UICollectionView

Ben Kane
  • 8,090
  • 4
  • 31
  • 57
  • I don't know how to use UICollectionView and there aren't good tutorials which explain usage of UICollectionView... – Bogdan Bogdanov Sep 08 '14 at 16:06
  • It's just like a `UITableView`, but you dequeue views instead of cells. [Here's a tutorial](http://www.raywenderlich.com/22324/beginning-uicollectionview-in-ios-6-part-12). [Here's another one](http://adoptioncurve.net/archives/2012/09/a-simple-uicollectionview-tutorial/). – Ben Kane Sep 08 '14 at 17:25
  • yes, but is full with bugs loads me only 7 of images and the function .reloadData() is work very slowly... – Bogdan Bogdanov Sep 10 '14 at 15:25
  • Sorry I don't know what to tell you, I haven't had problems with `UICollectionView` or noticed it being buggy. Setup is very similar to a table view. – Ben Kane Sep 10 '14 at 18:42
  • http://stackoverflow.com/questions/25771795/swift-uicollectionview-repeats-duplicate-cells this is the problem – Bogdan Bogdanov Sep 11 '14 at 08:49
  • Yes I already know about UICollectionView thanks for the answer :) – Bogdan Bogdanov Sep 13 '14 at 09:55