Question: Match which of these concepts of Object Oriented Programming are available to us when working with... + Structs Inheritanco, Composition : X on Classes Composition
Match which of these concepts of Object Oriented Programming are available to us when working with... + Structs Inheritanco, Composition : X on Classes Composition . X Your app crashed after you renamed an outlet inside your UIViewController. What went wrong? ut on Select one: a. The old name of the outlet is still being used in our storyboard file. To avoid this we could have right-clicked the outlet declaration in our UIViewController and renamed the outlet with the "refactor" tool. We could also delete the outlet inside InterfaceBuilder and re-create it with the new name, b. In general it is a better approach to use Actions exclusively. Actions are much more versatile than Outlets. c. After renaming an outlet all layout constraints associated with the view component have to be updated. We can either delete each layput constraint and re-create it, or we can update each constraint manually. To avoid this altogether we could place view camponents based on the x and y coordinates in the respective purent view, d. Outlets, once created, can not be renamed. We could have avoided this by spending more time coming up with a better name for the outlet at the outset. e. The app crashed because we didn't call viewDidLoad) after renaming the outlet. We have to make sure we call that method whenever we re-name an outlet
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
