Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/xjh093/JHFrameLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoCold authored and HaoCold committed Jan 4, 2019
2 parents b251af9 + 937d1fa commit 671ceaf
Showing 1 changed file with 30 additions and 21 deletions.
51 changes: 30 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'`

Expand All @@ -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
Expand Down Expand Up @@ -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 :)

0 comments on commit 671ceaf

Please sign in to comment.