From 937d1fad39fb3682e0a6a89a55a014ec3f3579a0 Mon Sep 17 00:00:00 2001 From: HaoCold Date: Wed, 26 Dec 2018 09:44:26 +0800 Subject: [PATCH] Update README.md --- README.md | 51 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 21 deletions(-) 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 :)