Skip to content

Latest commit

 

History

History
55 lines (33 loc) · 946 Bytes

File metadata and controls

55 lines (33 loc) · 946 Bytes

JHFrameLayout

A light weight autolayout framework.


Version

Latest release version:


Cocoapods

pod 'JHFrameLayout'


Compare layout time

Frame vs JHFrameLayout vs MyFlowLayout

image


Usage

- (void)loadView{

    self.view = [[JHFrameLayoutView alloc] initWithFrame:[UIScreen mainScreen].bounds];

    UIView *view1 = [[UIView alloc] init];
    view1.backgroundColor = [UIColor grayColor];
    [self.view addSubview:view1];
    
    view1.jhLayout
    .topOffsetBottomOfView(10, self.navigationController.navigationBar, NO)
    .leftIs(10)
    .bottomOffsetMiddleOfView(-50, self.view, YES)
    .rightOffsetMiddleOfView(-5, self.view, YES);
}


Logs

Change Log


More details in Demo :)