Skip to content

A easy frame layout,一款轻量级的布局框架,自动布局

License

Notifications You must be signed in to change notification settings

xjh093/JHFrameLayout

Repository files navigation

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 :)