The first time a tabbed application / project is introduced in the iOS and Swift Developers Course is during the To Do List app and challenge. This is a fairly large app compared to the other apps in the earlier iOS and Swift video lectures and students can be forgiven for watching Rob provide the solution as it is certainly challenging.
By the time students have got as far as the To Do List app in Lecture 53 on the Complete iOS8 and Swift Developers Course, most would have a good understanding of the storyboard, view controller and related .swift files associated to the project to make an app work.
With a Single View Application there is one view controller swift file associated to the app. This is where you would have your outlets variables and action classes defined.
Xcode won’t let you create an outlet from a view controller the swift file to another. So if you Ctrl and left drag a label, outlet or action from the main storyboard to the swift code but no variable or action is declared, this is the reason by. Admittedly this had caught me out!
In the assistant editor you are shown which associated view controller swift file you are working with. So it’s very important to have the correct view controller selected to ensure you can add the corresponding outlets from the storyboard to it and have the correct code to handle the intended behaviour.
How did you get on with the To Do List app? I would be very interested to know what challenges were faced by other students.
Until next time - Tak.
Recent Comments