Model View Controller (MVC) - Make a Simple Data Model

preview_player
Показать описание
Learn how to make iphone apps in swift.

In this tutorial you'll learn about MVC (Model View Controller) architecture. We'll continue with the Elements tableview app from episode 2, so make sure to watch it first.

This will introduce you to:

• the difference between models, views and controllers
• how to create a model
• the meaning of "!" on class properties
• the difference between a class and an instance method and how to create them
• working with arrays using a for loop and .map
• using NSNumbers

You will need XCode 9 for this tutorial. We will be working in Swift 4 and targeting iOS 11.

The code to this and all other episodes can be found here on GitHub:
Рекомендации по теме
Комментарии
Автор

Thank you for this - its really useful. If data is stored in CoreData do we need to set the model like this OR is done automatically by Coredata any help would be greatly appreciated.

gabrielrml
Автор

hi, is it necessary to be an NSObject Class? Thanks for the video

jairmoreno
Автор

Hey there! I really love your tutorials, very quick and great explanations :D Just had a question, if I wanted to change the text in one row to a different color, how would I go about doing that? :o

djlolfps