• What’s the difference between an outlet and an action?
An outlet connects variables to objects in the storyboard so you can access, get info or make changes to these objects in code while the app is running, while actions connect to controls, such as a switch to make it possible for you to tap a button to make a method run.
• When might a developer want to use control events other than the default event?
A developer would want to use control events over a default event in situations where specific information needs to be input. If you have a form with a question that required certain parameters, a form event would lead to a success page. You as a developer would need to change the default into one that would show an error message rather than the success page.
Top comments (0)