diff --git a/README.md b/README.md index a011536..ef6edf4 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,13 @@ A light weight autolayout framework. --- -# Pod +# Version +Latest release version: +- [2.5.1](https://github.com/xjh093/JHFrameLayout/releases) + +--- + +# Cocoapods `pod 'JHFrameLayout'` @@ -16,6 +22,29 @@ A light weight autolayout framework. --- + +# 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 ### 2018-11-9 @@ -65,25 +94,5 @@ A light weight autolayout framework. --- -# USE - -``` -- (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); -} - -``` - # More details in Demo :)