readMe初步调整
This commit is contained in:
12
README.md
12
README.md
@@ -147,6 +147,18 @@ cellProperty.customLineViewBlock = ^CRLineView * _Nonnull{
|
||||
make.left.right.bottom.offset(0);
|
||||
}];
|
||||
|
||||
lineView.selectChangeBlock = ^(CRLineView * _Nonnull lineView, BOOL selected) {
|
||||
if (selected) {
|
||||
[lineView.lineView mas_updateConstraints:^(MASConstraintMaker *make) {
|
||||
make.height.mas_equalTo(6);
|
||||
}];
|
||||
} else {
|
||||
[lineView.lineView mas_updateConstraints:^(MASConstraintMaker *make) {
|
||||
make.height.mas_equalTo(4);
|
||||
}];
|
||||
}
|
||||
};
|
||||
|
||||
return lineView;
|
||||
}; //可选
|
||||
|
||||
|
||||
12
README_en.md
12
README_en.md
@@ -142,6 +142,18 @@ cellProperty.customLineViewBlock = ^CRLineView * _Nonnull{
|
||||
make.left.right.bottom.offset(0);
|
||||
}];
|
||||
|
||||
lineView.selectChangeBlock = ^(CRLineView * _Nonnull lineView, BOOL selected) {
|
||||
if (selected) {
|
||||
[lineView.lineView mas_updateConstraints:^(MASConstraintMaker *make) {
|
||||
make.height.mas_equalTo(6);
|
||||
}];
|
||||
} else {
|
||||
[lineView.lineView mas_updateConstraints:^(MASConstraintMaker *make) {
|
||||
make.height.mas_equalTo(4);
|
||||
}];
|
||||
}
|
||||
};
|
||||
|
||||
return lineView;
|
||||
}; //Optional
|
||||
|
||||
|
||||
Reference in New Issue
Block a user