Skip to content

Finished product#11

Open
NataliaEstrella wants to merge 2 commits intoaccesscode-2-2:masterfrom
NataliaEstrella:master
Open

Finished product#11
NataliaEstrella wants to merge 2 commits intoaccesscode-2-2:masterfrom
NataliaEstrella:master

Conversation

@NataliaEstrella
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good opportunity to create a separate abstract class that includes all this data, say called "ListData". This would be your "Model" in MVC. This class could have three methods that each return a CQCategory, something like planetsData, treatsData, and carsData. Then your viewDidLoad would look much small and not include the actual data:

self.cateoryObjects = @[
[ListData planetData],
[ListData treatData],
[ListData carsData]
];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants