0

I have two ViewControllers and i need to pass data between the ViewControllers using Model Class Concept.

All i need to know is Why and how is it used? What is the advantage? The technical writing from the book I'm reading makes it hard to understand.

remyr3my
  • 768
  • 1
  • 6
  • 19
  • 2
    Possible duplicate of [Passing Data between View Controllers](http://stackoverflow.com/questions/5210535/passing-data-between-view-controllers) – karan Jun 28 '16 at 09:17

1 Answers1

0

First of all you need to study the model-view-controller design pattern to understand the why we need to create model class to hold the data and passing the data around view controllers. Model-View-Controller is key design pattern in most of the languagesModel-View-Controller

Properties is the design pattern in objective c and swift which is helpful for sharing data among classes. Properties in ios

I suggest you to study all the design pattern which help you for understating the objective basic ios Design Pattern

Raj Aggrawal
  • 761
  • 1
  • 6
  • 21