GithubHelp home page GithubHelp logo

Header about rfquiltlayout HOT 15 OPEN

bryceredd avatar bryceredd commented on June 16, 2024
Header

from rfquiltlayout.

Comments (15)

johndpope avatar johndpope commented on June 16, 2024

+1 vote for sections.
Nice work Bryce.

from rfquiltlayout.

paventuri avatar paventuri commented on June 16, 2024

+1 vote for sections

That would be great to have sections in this control.

Excellent job btw

from rfquiltlayout.

johndpope avatar johndpope commented on June 16, 2024

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

from rfquiltlayout.

dinarajas avatar dinarajas commented on June 16, 2024

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

from rfquiltlayout.

takhand avatar takhand commented on June 16, 2024

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

from rfquiltlayout.

wilmarvh avatar wilmarvh commented on June 16, 2024

+1 for headers / sections

from rfquiltlayout.

hilen avatar hilen commented on June 16, 2024

+1 for headers / sections / footers

from rfquiltlayout.

atsushisakai-gh avatar atsushisakai-gh commented on June 16, 2024

+1 for headers / sections / footers

from rfquiltlayout.

steve21124 avatar steve21124 commented on June 16, 2024

+1 for headers / sections / footers

from rfquiltlayout.

antoinelamy avatar antoinelamy commented on June 16, 2024

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

from rfquiltlayout.

smilesworld116 avatar smilesworld116 commented on June 16, 2024

Definitely needs to add a support of sections.

from rfquiltlayout.

abraxascorner avatar abraxascorner commented on June 16, 2024

+1. :)

from rfquiltlayout.

axmav avatar axmav commented on June 16, 2024

+1

from rfquiltlayout.

Arnold134777 avatar Arnold134777 commented on June 16, 2024

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

from rfquiltlayout.

Arnold134777 avatar Arnold134777 commented on June 16, 2024

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

from rfquiltlayout.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.