title: How to use for loop to print array in a page control (swift4)
body: <p>My code right now uses a <code>for</code> loop to print images placed in the assets folder. I want to do the same thing with text using a label. So in array <code>judo</code>. I would like each entry to be printed in order just like the way it is doing with thee images. </p>
  
  <pre><code>@IBOutlet var lz: UILabel!
  var judo = ["a","b","c"]
  
  override func viewDidLoad() {
      super.viewDidLoad()
      scrol.delegate = self
  
      for image in 0...2 {
          lz.text = 
  
          let imageTo = UIImage(named: "\(image).png")
          let imageView = UIImageView(image: imageTo)
          let xCord = view.frame.midX + view.frame.width * CGFloat(image)
          contenetWidth += view.frame.width
          scrol.addSubview(imageView)
      }
  }
  </code></pre>