Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header #6

Open
blackdemon007 opened this issue Jun 21, 2013 · 15 comments
Open

Header #6

blackdemon007 opened this issue Jun 21, 2013 · 15 comments

Comments

@blackdemon007
Copy link

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

@johndpope
Copy link

+1 vote for sections.
Nice work Bryce.

@paventuri
Copy link

+1 vote for sections

That would be great to have sections in this control.

Excellent job btw

@johndpope
Copy link

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]];

@dinarajas
Copy link

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

@takhand
Copy link

takhand commented Dec 5, 2013

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

@wilmarvh
Copy link

wilmarvh commented Dec 9, 2013

+1 for headers / sections

@hilen
Copy link

hilen commented Feb 23, 2014

+1 for headers / sections / footers

@atsushisakai-gh
Copy link

+1 for headers / sections / footers

This was referenced Mar 13, 2014
@steve21124
Copy link

+1 for headers / sections / footers

@antoinelamy
Copy link

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

@smilesworld116
Copy link

Definitely needs to add a support of sections.

@abraxascorner
Copy link

+1. :)

@axmav
Copy link

axmav commented Feb 21, 2016

+1

@Arnold134777
Copy link

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

@Arnold134777
Copy link

@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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests