Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any best practices or conventions for ios project structure

Tags:

I was wondering if there is any best practices or conventions to structure your iOS projects?

Thanks.

like image 953
itsaboutcode Avatar asked Sep 20 '11 05:09

itsaboutcode


3 Answers

Taken from iOS Coding Best Practices Slideshare from Jean-Luc David:

enter image description here

like image 91
Chris Avatar answered May 27 '23 09:05

Chris


As for me, Architecting iOS Project solution works perfectly. I also added Cocoapods.

Now my project looks like:

enter image description here

like image 40
Vitaly Kotivskyi Avatar answered May 27 '23 07:05

Vitaly Kotivskyi


I've been using a similar one to the following for my projects.

But after going through this thread and some other articles online, I decided to categorize few types under a new folder code UI.

  • Application (Config file with constants, AppDelegate)
  • Models
  • UI
    • Views
    • Controllers
    • If I use Nib files (.Xib) they should come under this or else the storyboard(s)
  • Resources (All resources like Images, Custom fonts, Audio files with each in different subfolders)
  • Services
  • Helpers/Utilities
  • Libraries

But if you are using MVVM architecture, please customize this to your best fit.

Cheers!

like image 31
Randika Vishman Avatar answered May 27 '23 09:05

Randika Vishman