A light weight autolayout framework.
Latest release version:
pod 'JHFrameLayout'
Frame
vs JHFrameLayout
vs MyFlowLayout
- (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);
}