Hi - complete noob here, no dev experience.
Trying to create a very simple app (scrollable/zoomable map with pins you can toggle on/off) using UIKit storyboard.
Trying to follow the video in this post but getting stuck. I dropped in a Scroll View, nested an Image View inside, got all the constraints set to the Super View, turned off Content Layout Guides, gave scroll view a delegate (whatever that means lol), gave scroll view an outlet… did all the steps in the vid until the “return self.imageView” which gives an error View Controller has no member “imageView”.
Also why is my code so empty?
import UIKit
class ViewController: UIViewController, UIScrollViewDelegate {
@IBOutlet weak var scrollView: UIScrollView!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
self.scrollView.minimumZoomScale = 1.0
self.scrollView.maximumZoomScale = 6.0
}
}
There’s like nothing in there, but in Main.storyboard I have images, etc.