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

we do not have to use weakSelf in mas_make block? #251

Closed
iosdeveloperpanc opened this issue Sep 28, 2015 · 1 comment
Closed

we do not have to use weakSelf in mas_make block? #251

iosdeveloperpanc opened this issue Sep 28, 2015 · 1 comment

Comments

@iosdeveloperpanc
Copy link

usually, we use strong self in block,Xcode will show warning to us.
but in mass_make block, I use strong self to set constrains, Xcode does not gives any dealloc warning.

@robertjpayne
Copy link
Member

@iosdeveloperpanc masonry blocks are not used past the scope of the method call so you are free to not use strongSelf/weakSelf.

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

2 participants