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

You are Too strong!!! I have a question #169

Closed
CharlinFeng opened this issue Mar 5, 2015 · 1 comment
Closed

You are Too strong!!! I have a question #169

CharlinFeng opened this issue Mar 5, 2015 · 1 comment

Comments

@CharlinFeng
Copy link

感谢作者!我佩服的五体投地!

Thank you first of all, your framework is powerfull!!!

i’m chinese in chengdu ,my english is very poor,so my description must have many syntax error, but i very hope that you cloud read over my question,and give me a response,thank you very much, and happy new sheep year!!!!!

:) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :)

but,i have a question,

1.some method has two child method,one don,t have prefix “mas_”,and another has prefix “mas_”,

for exaple:
equal, mas_equal
offset,mas_offset

what does “mas_” mean? why a method has another method with prefix “mas_”??

2.we add constraint use [view mas_makeConstraints:]; but sometimes i need add constraint between two views or even more,

for example, i want this effect (views add constraints not one view) if i use apple’s vfl,i can do it like this:

@“H:|-0-[view1]-10-[view2]-10-[view3]-10-[view4]-….-0-|”

3.there has some method named “and” “with”,i know their usage,but if i don’t use them,i could receive the save result,i fell “and” “with” is useless???
example:
make.redview.width.and.height.equalTo(self.view);
|| (the same?)
make.redview.width.height.equalTo(self.view);

4.what different in left/leftMargin top/topMargin bottom/bottomMargin right/rightMargin ?
i have test ,but i find out they are same???

thank you!!!

@cloudkite
Copy link
Contributor

  1. Its considered good practice to prefix your method names if you are extending a built in class with a category
  2. Please read the readme, see https://github.com/Masonry/Masonry#4-nsarray
  3. Yes they have no effect its just semantic
  4. Added the iOS 8 margin attributes #163

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