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

Margin error #29

Open
cbarbera80 opened this issue Jan 25, 2015 · 3 comments
Open

Margin error #29

cbarbera80 opened this issue Jan 25, 2015 · 3 comments

Comments

@cbarbera80
Copy link

Hi, i've a problem with margins. How i set margin to leading and trailing to superview? My auto layout constraint are correct:

ios simulator screen shot 25 gen 2015 13 09 43

@blacklettermd
Copy link

I am having a similar issue. Did you figure out the solution on this?

@recordmob-dev
Copy link

I had this same problem. Managed to fix it by changing the initialize method of RFQuiltLayout.m to the following:

- (void) initialize {
    // defaults
    self.direction = UICollectionViewScrollDirectionVertical;
    float defaultDimension = [[UIScreen mainScreen] bounds].size.width / 3;
    self.blockPixels = CGSizeMake(defaultDimension, defaultDimension);
}

@juanpare
Copy link

juanpare commented Feb 6, 2017

Hi, this don't work for me.

My app have margin problems only in iPhone 6+ and 7+, any ideas?

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

4 participants