Open blackdemon007 opened 11 years ago
+1 vote for sections. Nice work Bryce.
+1 vote for sections
That would be great to have sections in this control.
Excellent job btw
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
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]];
+1 vote for sections. Sections would be highest priority.. This is a great library.
jdp-global can you post your implementation of how you used MMHorizontalListView with QuilViewLayout. Please!!!! Thank you.
+1 for headers / sections
+1 for headers / sections / footers
+1 for headers / sections / footers
+1 for headers / sections / footers
I added basic support for it, check my fork at https://github.com/antoinelamy/RFQuiltLayout
Definitely needs to add a support of sections.
+1. :)
+1
@antoinelamy when i have tried headerReferenceSize = CGSizeMake(320,222); run ,it show error;
@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;
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