• Post Reply Bookmark Topic Watch Topic
  • New Topic

How should I structure my iOS app?  RSS feed

Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the best way to structure an iOS app? I've seen one structured like so:

A folder for:
- View Controllers
- Views
- View Models
- UI (aka storyboards)

A couple of bonus questions:
1) Can you explain what should be put into these folders? I know that view controllers should have you view controllers (obviously), and that UI should contain your storyboards. Would views be for custom views that you create, such as a custom datepicker or something? And would View Models be the model that contains all the data for a specific object that your view presents?
2) Would View Models be necessary if you use core data? Is what core data generates your "view models"?
3) When and for what purpose should you be writing part of your code as a framework?
The harder you work, the luckier you get. This tiny ad brings luck - just not good luck or bad luck.
Why should you try IntelliJ IDEA ?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!