Latest 2.5.3
Homepage https://github.com/xjh093/JHFrameLayout
License MIT
Platforms ios 6.0, requires ARC
Frameworks UIKit
Authors

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

Latest podspec

{
    "name": "JHFrameLayout",
    "summary": "A simple way for frame layout. It can autolayout in version 2.0.",
    "version": "2.5.3",
    "license": {
        "type": "MIT"
    },
    "authors": {
        "Haocold": "[email protected]"
    },
    "homepage": "https://github.com/xjh093/JHFrameLayout",
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/xjh093/JHFrameLayout.git",
        "tag": "2.5.3"
    },
    "source_files": "JHFrameLayout/*.{h,m}",
    "requires_arc": true,
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This