1.UIScrollView
1  | class UIScrollView : UIView  | 
1  | extension ScrollViewController: UIScrollViewDelegate {  | 
2.UITableView
1  | class UITableView : UIScrollView  | 
1  | class VC: UIViewController {  | 
1  | //MARK: - TableViewDataSource  | 
1  | //MARK: - TableViewDelegate  | 
1  | //MARK: - TableViewCell  | 
3.UICollectionView
1  | class UICollectionView : UIScrollView  | 
1  | //MARK: - CollectionViewController  | 
1  | //MARK: - UICollectionViewDataSource  | 
1  | //MARK: - UICollectionViewDelegate  | 
1  | //MARK: - CollectionViewCell  | 
reloadData()之后的函数调用顺序
1  | numberOfSections2  |