skip to Main Content

Xcode – How do you pass data between 2 ViewControllers without displaying a Viewcontroller, seguing, or changing the frame

protocol useForDist { func findpindist() } class ViewController1: UIViewController, MKMapViewDelegate, useForDist { override func viewDidLoad() { super.viewDidLoad() } func findpindist() { print("Test") } } class HomePageController: UIViewController { var delegate: useForDist? override func viewDidLoad() { super.viewDidLoad() self.delegate?.findpindist() } } Why…

VIEW QUESTION
Back To Top
Search