RFQuiltLayout icon indicating copy to clipboard operation
RFQuiltLayout copied to clipboard

Margin error

Open cbarbera80 opened this issue 10 years ago • 3 comments

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

cbarbera80 avatar Jan 25 '15 12:01 cbarbera80

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

blacklettermd avatar Jul 28 '15 15:07 blacklettermd

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);
}

recordmob-dev avatar Jul 27 '16 13:07 recordmob-dev

Hi, this don't work for me.

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

juanpare avatar Feb 06 '17 16:02 juanpare