- 1 #pragma mark - Lifecycle 生命周期
规则:按照调用的先后顺序 2 #pragma mark - Format Data + 数据[数据获取更新]
规则:
FormatData 格式化 (一些数据设置初值)
getDataFromWeb
getDataFromDB
getDataForUpDate (数据更新)3 #pragma mark - User Action 用户操作
如果
UIButton :BTNAction
UIGesture :GestureAction
代理 : DelegateAction 一些代理触发的4 #pragma mark - [CollectionView delegate] [UITableView delegate] 代理
如果有CollectionView 先谢CollectionView 在UITableView- 5 #pragma mark - Web Request 网络请求
命名为 WebRequset - 6 #pragma mark - UI UI生成
采用CreatUI - 7 #pragma mark - Lazy Load 懒加载
- 8 #pragma mark - Other
- 9 #pragma mark - managerNotificationCenter
notificationUpdateEvent
所有用户主动操作 Action 数据刷新UpdateEvent
一些技巧
最新推荐文章于 2022-10-30 11:45:49 发布