Forgive me, I can't remember writing it down.
Uicollectionviewflowlayout flow Automatic layout inherits from Uicollectionviewlayout
Initialize: [[Uicollectionviewflowlayout Alloc]init]
Property Description:
Minimumlinespacing:cell up and down spacing
Minimuminteritemspacing: Left and right spacing
Size of the Itemsize:cell
Scrolldirection: Direction
Sectioninset: The margin of the module
Headerreferencesize:heder size
Footerreferencesize:footer size
Uicollectionview Collection View
Initialize: [[[Uicollectionview alloc]initwithframe:cgrectmake (0, 0, Self.view.frame.size.width, self.view.frame.size.height) Collectionviewlayout:flowlayout];
Register Cell:[_collectionview Registerclass:[collectionviewcell class] forcellwithreuseidentifier:@ "CollectionViewCell" ];
Registernib: (Nullable uinib *) nib Forcellwithreuseidentifier: (NSString *) identifier (XIB)
Register Reusableview:[_collectionview Registerclass:[collectionreusableview class] Forsupplementaryviewofkind: Uicollectionelementkindsectionheader withreuseidentifier:@ "Reusableview"];
Registernib: (Nullable uinib *) nib Forsupplementaryviewofkind: (NSString *) kind withreuseidentifier: (NSString *) Identifier
Common agent: Uicollectionviewdatasource
-(Nsinteger) CollectionView: (Uicollectionview *) CollectionView numberofitemsinsection: (NSInteger) Section;
-(Uicollectionviewcell *) CollectionView: (Uicollectionview *) CollectionView Cellforitematindexpath: (NSIndexPath *) Indexpath;
-(Nsinteger) Numberofsectionsincollectionview: (Uicollectionview *) CollectionView;
-(Uicollectionreusableview *) CollectionView: (Uicollectionview *) CollectionView Viewforsupplementaryelementofkind :(NSString *) kind Atindexpath: (Nsindexpath *) Indexpath;
Uicollectionviewdelegate
-(void) CollectionView: (Uicollectionview *) CollectionView Didselectitematindexpath: (Nsindexpath *) IndexPath
Uicollectionviewdelegateflowlayout
-(Cgsize) CollectionView: (Uicollectionview *) CollectionView layout: (uicollectionviewlayout*) collectionviewlayout Sizeforitematindexpath: (Nsindexpath *) Indexpath;
Recommended: Uicollectionviewleftalignedlayout to align Left
iOS Uicollectionview simple Instructions