RFQuiltLayout icon indicating copy to clipboard operation
RFQuiltLayout copied to clipboard

Header

Open blackdemon007 opened this issue 12 years ago • 15 comments

Hi, I use your Layout but if I want show multiple sections with headers, it's not posible, because the header section never get call. What I need to do to show multiple sections and headers??

Thanks iun advance

blackdemon007 avatar Jun 21 '13 21:06 blackdemon007

+1 vote for sections. Nice work Bryce.

johndpope avatar Jul 27 '13 14:07 johndpope

+1 vote for sections

That would be great to have sections in this control.

Excellent job btw

paventuri avatar Aug 09 '13 15:08 paventuri

I got the sections working by bundling up separate quilts into MMHorizontalListViewCells.

https://github.com/jdp-global/MMHorizontalListView

This sits inline with Windows 8 - Visual Language - hubs / sections - whereby any hub(MMHorizontalListViewCell) could contain any content / picture / form etc.

Todo the titles I just offset uilabel

photo 30

MMHorizontalListView *horizontalView = [[MMHorizontalListView alloc]initWithFrame:self.view.bounds];
horizontalView.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth;
[self.view addSubview:horizontalView];
horizontalView.dataSource = self;
horizontalView.delegate = self;
horizontalView.cellSpacing = 40;
[container0 addSubview:horizontalView];
[self.view addSubview:container0];

flowLayout = [[RFQuiltLayout alloc] init];
flowLayout.tag = 111;
flowLayout.groupSize = CGSizeMake(4,4);
flowLayout.blockPixels = CGSizeMake(122, 122);
flowLayout.direction = UICollectionViewScrollDirectionHorizontal;
flowLayout.delegate = self;



myCollectionView =[[UICollectionView alloc]initWithFrame:rect collectionViewLayout:flowLayout];

// myCollectionView.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight; [myCollectionView registerClass:[ProfileCell class] forCellWithReuseIdentifier:@"ProfileCell"]; [myCollectionView registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@"ID"]; // Do any additional setup after loading the view, typically from a nib. myCollectionView.delegate = self; myCollectionView.dataSource = self; [myCollectionView setBounces:YES]; myCollectionView.scrollEnabled = NO; myCollectionView.tag = HUB0; [myCollectionView setCollectionViewLayout:flowLayout]; [myCollectionView setBackgroundColor:[UIColor clearColor]];

johndpope avatar Sep 02 '13 12:09 johndpope

+1 vote for sections. Sections would be highest priority.. This is a great library.

dinarajas avatar Nov 04 '13 13:11 dinarajas

jdp-global can you post your implementation of how you used MMHorizontalListView with QuilViewLayout. Please!!!! Thank you.

takhand avatar Dec 05 '13 18:12 takhand

+1 for headers / sections

wilmarvh avatar Dec 09 '13 13:12 wilmarvh

+1 for headers / sections / footers

hilen avatar Feb 23 '14 09:02 hilen

+1 for headers / sections / footers

atsushisakai-gh avatar Mar 07 '14 12:03 atsushisakai-gh

+1 for headers / sections / footers

steve21124 avatar Mar 24 '14 09:03 steve21124

I added basic support for it, check my fork at https://github.com/antoinelamy/RFQuiltLayout

antoinelamy avatar Mar 27 '14 17:03 antoinelamy

Definitely needs to add a support of sections.

smilesworld116 avatar Jul 04 '14 17:07 smilesworld116

+1. :)

abraxascorner avatar Oct 08 '14 12:10 abraxascorner

+1

axmav avatar Feb 21 '16 14:02 axmav

@antoinelamy when i have tried headerReferenceSize = CGSizeMake(320,222); run ,it show error;

Arnold134777 avatar Mar 09 '16 12:03 Arnold134777

@antoinelamy I don't know is it right to change

  int unrestrictedDimensionStart = isVert? rect.origin.y / self.itemBlockSize.height : rect.origin.x / self.itemBlockSize.width;

to,I have tried it will be show ok when headerReferenceSize.height > self.itemBlockSize.height.

  int unrestrictedDimensionStart = isVert? (rect.origin.y - self.headerReferenceSize.height) / self.itemBlockSize.height : rect.origin.x / self.itemBlockSize.width;

Arnold134777 avatar Mar 10 '16 02:03 Arnold134777