基础项目构建-工程目录

工程目录 需要很好的划分 不然工程看起来臃肿 重叠 重构性差


基础项目构建-工程目录_第1张图片
项目模块.png
0.Define 
1.AppDelegate
2.Modules
3.BasicFile
4.PublicResource
5.ThirdParty
6.Utils_other
7.Utiles_my
8.SupportFile
  • 首先搞Define 因为其他文件 都有包含头文件问题 会不断报错 先导入库的头文件

0.Define

  • 创建pch 设置路径 Prefix Header
$(PROJECT_NAME)/Define/AZHPrefixHeader.pch
基础项目构建-工程目录_第2张图片
image.png
  • Single
    单例模式
  • UtilsHeadFile
    第三方的头文件
#import 
  • CommonMacros
    各种宏定义
#define WIDTH [UIScreen mainScreen].bounds.size.width
  • WPPStrConst
    各种通知 appkey 静态字符串
.h
UIKIT_EXTERN NSString *const kJSPushAppKey;
.m
NSString *const kJSPushAppKey = @"xxxxxxxx";

1.AppDelegate

  • AppDelegate
    基础类
  • AppDelegate+APPService
    分支AppDelegate 包含友盟 地图 微信支付 等初始化...
  • AppDelegate+PushService
    推送分支

2.Modules

3.BasicFile

  • VC
BaseVC
BaseScrollView
BaseNavigationVC
  • View
  • Model

4.PublicResource

  • 基础图片 导航 搜索 占位图 等

5.ThirdParty

  • 加入支付宝

6.Utils_other

  • 加入一些组件 非pods导入 是手动导入

7.Utiles_my

8.SupportFile

  • info.plist, assets.xcassets ,launchscreen.storyboard ,main.m

你可能感兴趣的:(基础项目构建-工程目录)