Compare the two general structures:
1. Main directory According to the business classification, the internal directory according to the module classification (main directory according to the MVC architecture classification, internal according to the Project module classification)
Advantages: Relatively fast positioning of the corresponding business.
Disadvantage: module related classes are too scattered, need to switch back and forth to find files, inconvenient to develop.
2. Main directory According to the module classification, the internal directory according to the business classification
Advantages: Centralized module class, convenient management and development.
Cons: When several modules share some classes, they are not well categorized.
such as Jane book iOS Program Directory Classification (unofficial):
1. Main directory According to the business classification, the internal directory according to the module classification
2. Main directory According to the module classification, the internal directory according to the business classification
Directory structure for IOS projects