工程中 QuoteUtil文件夹阅读笔记
工程中QuoteUtil文件夹阅读笔记
[toc]
基本信息
目录结构:
.
├── ColorManager
├── FTEmptyTableViewCell.h
├── FTEmptyTableViewCell.m
├── FTEmptyTableViewCell.xib
├── FTQuoteAlertUtil.swift
├── FTQuoteCustomEmptyFailedView.h
├── FTQuoteCustomEmptyFailedView.m
├── FTQuoteCustomEmptyNoDataView.h
├── FTQuoteCustomEmptyNoDataView.m
├── FTQuoteCustomLoadingEmptyDataSetView.h
├── FTQuoteCustomLoadingEmptyDataSetView.m
├── FTQuoteCustomLoadingView.h
├── FTQuoteCustomLoadingView.m
├── FTQuoteStockNewsMiniView.h
├── FTQuoteStockNewsMiniView.m
├── FTQuoteUtil.h
├── FTQuoteUtil.m
├── FTSensorsTimeTrackManager.h
├── FTSensorsTimeTrackManager.m
└── UIImage+Share.swift
模块对应组件
上面这些代码对应的都是牛牛中的什么组件?其实看名字也能猜出个大概,文件名中很多都有Empty字眼,猜测是没网时数据加载不出来需要展示的组件。
怎么去找呢?
- 在你想要找到这个模块中打一个断点,根据名字猜测出大概的位置,然后在模拟器上多点几下试试,如果当前页面触发了断点,那么该页面就调用了此代码模块对应的组件,打开牛牛bate版,找到对应的页面,摇一摇打开3D视图,就能很清楚的看到这个组件的信息了。
- 同时牛牛也是一个庞大的工程,如果像无头苍蝇一样乱点的话,可能点半天也找不到对应的组件,那就要从代码里面的注释去抓敏感信息。
对应第一个方法:以下图片为 FTQuoteCustomLoadingEmptyDataSetView
对应的组件