Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于扩展属性 #621

Open
fanlilinSaber opened this issue Apr 14, 2021 · 0 comments
Open

关于扩展属性 #621

fanlilinSaber opened this issue Apr 14, 2021 · 0 comments

Comments

@fanlilinSaber
Copy link

  1. @Property (nonatomic, assign, readonly, getter=hasFinished) BOOL finished; 可否暴露这个属性 我想在自定义的时候更多扩展
  2. @Property (assign, nonatomic) CGFloat verticalMargin UI_APPEARANCE_SELECTOR; 可否新增这个属性,因为默认 margin 是调整左右上下的间距,定制化的时候 我想可以单独调整上下的间距
    [topSpacer addConstraint:[NSLayoutConstraint constraintWithItem:topSpacer attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationGreaterThanOrEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1.f constant:self.verticalMargin]];
    [bottomSpacer addConstraint:[NSLayoutConstraint constraintWithItem:bottomSpacer attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationGreaterThanOrEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1.f constant:self.verticalMargin]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant