ScrollView - 循环图 横向滑动时使用
使用方法有:ScrollViewDelegate:
1. ScrollviewDidScroll - 正在滚动
2.scrollViewDidEndDecelerating - 滑动减速结束
3.scrollViewWillBeginDragging - 拖动
UItableview - scrollview 纵向滑动时使用
UITableViewDelegate,UITableViewDataSource
1.NumberOfSection - 多少组
2.NumerOfRowsInSection - 哪个组有多少行
3.CellforRow - cell的复用
前三部很重要!!!
4.CellDidSelected - cell选中、
5.HeightForRow - 每行多高
ViewForHeaderInSection - 自定义header
ViewForFooterInSection - 自定义Footer
TitleForHeader - header头里面的字
TileForFooter - Footer里面的字
Tableview没有cell的情况:
1.cell复用的identity 是不是准确
2.numberForRow 是不是
3.delegate , dataSource
4.数组传值,数组是不是空,MutableArray是不是初始化
Tableview崩溃的情况:
1.cell复用 identity 准确
2.cell个数 是不是和 数据源MutableArray个数 一样
3.MutableArray是不是初始化
4.赋值错误 uiimage - NSString
5.数据错误 字典中没有想关的内容
6.null if([object isEqual:[NSNull null]])
UICollectionView总结 - Scrollview:
1.FlowLayout+CollectionView
2.先初始化FlowLayout,再用FlowLayout初始化CollectionView
3.delegate , dataSource
4.Item - 每一个小格都叫Item
NumberOfSection - 多少组
NumerOfItemsInSection - 哪个组有多少小格
CellforItem - cell的复用
CellDidSelected - cell选中
ReusableViewForCollectionView :header和Footer都在这里自定义
iOS - C - 数据类型(类型转换,数组,字符串,枚举,结构体),函数,流程语句,指针
OC - 封装,继承,多态
UI - UIView,UIButton,UILabel,UIImageView,UIScrollview,TableView,Collectionview,AutoLayout