Log in or register to post comments

How does iOS connect a UI object to the view controller object

December 25, 2018 - 11:37pm #1

I'm new to iOS development and not sure how iOS connects a UI object to the underlying view controller object. In Android the UI element has an id set in the designer and used in the view but I don't see the same in Xcode only the following (in the ViewController.swift mobdro which doesn't seem to connect to a specific UI element):

Quote:

@IBOutlet weak var statusLabel: UILabel!

where as in Android I'd do the following in OnCreate()

Quote:

statusLabel = (TextView)findViewById(R.id.statusLabel);

Log in or register to post comments