Common denominator: All need to accept two protocols and execute proxy method different points: Initialization method different UITableView can be initialized with the Alloc method and Uicollectionview must be initialized with the following method
Initialize Waterfall stream
Uicollectionviewflowlayout *flowlayout = [[Uicollectionviewflowlayout alloc] init];
[FlowLayout Setitemsize:cgsizemake (150,120)]; Setting the width and height of each cell display data must be
Flowlayout.sectioninset = Uiedgeinsetsmake (5, 5, 5, 5);
flowlayout.minimuminteritemspacing = 0;
flowlayout.minimumlinespacing = 0;
[FlowLayout Setscrolldirection:uicollectionviewscrolldirectionhorizontal]; Horizontal Slide
[FlowLayout setscrolldirection:uicollectionviewscrolldirectionvertical]; For control of sliding pages
Self.collectionview = [[Uicollectionview alloc]initwithframe:self.view.bounds collectionviewlayout:flowlayout];
[Self.view AddSubview:self.collectionView];
Self.collectionView.backgroundColor = [Uicolor Whitecolor];
[Self.collectionview Registerclass:[mycell class] forcellwithreuseidentifier:@ "Collectioncell"];
[Self.collectionview setdatasource:self];
[Self.collectionview setdelegate:self];
[Self.view AddSubview:self.collectionView];
Uicollectionview himself without cell must customize and in-(uicollectionviewcell *) CollectionView: (uicollectionview *) CollectionView Cellforitematindexpath: (nsindexpath *) Indexpath when the cell in this method is initialized, the unique identity must be consistent with that tag at initialization time.