Skip to content

PULL my finger, Mike!#14

Open
Jamaal51 wants to merge 5 commits intoaccesscode-2-2:masterfrom
Jamaal51:master
Open

PULL my finger, Mike!#14
Jamaal51 wants to merge 5 commits intoaccesscode-2-2:masterfrom
Jamaal51:master

Conversation

@Jamaal51
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 buddiesData, foodData, and activitiesData. Then your viewDidLoad would look much small and not include the actual data:

self.categories = [[NSMutableArray alloc]init];

self.allCategories = @[
[ListData buddiesData],
[ListData foodData],
[ListData activitiesData]
];

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