Skip to content

Commit

Permalink
Doc: edit README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuChuanRui committed Nov 12, 2016
1 parent dce6d22 commit 143d761
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ Create a subclass of `CRTagsView` to dispay tag , override `-setupTagsViewWithMo
Create `CRTagsLabel` in UIViewController, config `block` and `tags`.
```obj-c
NSAttributedString *(^block)() = ^NSAttributedString *() {
CRCustomTagsView *customTagView = [[CRCustomTagsView alloc] initWithAlignment:self.alignment];
CRCustomTagsView *customTagView = [CRCustomTagsView new];

return [customTagView attributedStringWithTags:tags];
};

CRTagsLabel *tagsLabel = [[CRTagsLabel alloc] initWithBlock:block];
tagsLabel.tags = tags;
tagsLabel.delegate = self;
[self.view addSubview:tagsLabel];
[tagsLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(@100);
Expand Down

0 comments on commit 143d761

Please sign in to comment.