Timeline for What is "Constrain to margin" in Storyboard in Xcode 6
Current License: CC BY-SA 3.0
18 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 20, 2020 at 9:12 | history | edited | CommunityBot | Commonmark migration | |
| Jan 10, 2019 at 9:40 | comment | added | Abhimanyu | The images are not displayed! The link seems to be broken. | |
| Sep 7, 2018 at 18:32 | comment | added | stateless | I'm completely lost on how you got to the "Relative to Margin" horizontal space constraint | |
| Jul 29, 2018 at 11:46 | comment | added | FNMT8L9IN82 | Wait, I'm new to iOS development, and have been doing web development for awhile. You stated, "In this respect it is very much like the padding property associated with blocks in CSS." So let me get this straight, margins in ios are equivalent to paddings in CSS? The CSS box model is content -> padding -> border -> margin. In iOS, it would be nested view's border -> super view's margin -> super view's border. If that is true, no wonder I couldn't get margins in iOS...always had that CSS mentality in mind while trying to lay out iOS views. | |
| Nov 14, 2017 at 7:07 | review | Suggested edits | |||
| Nov 14, 2017 at 10:12 | |||||
| Sep 23, 2016 at 23:27 | comment | added | Alex Bollbach | The conflation of "Item & Attribute" into one drop-down selection blurred the important distinction made clear by this post. Namely, that the view you are making a constraint from has a margin "attribute" and the view you are constraining to has a margin attribute. This post helped me get my constraints perfect! | |
| Oct 21, 2015 at 19:23 | comment | added | Dan F | I'd just like to point out that I am in the process of fixing an iOS 7 crash that is specifically because of a constrains to margins constraint | |
| S Aug 8, 2015 at 18:13 | history | suggested | Yam | CC BY-SA 3.0 | better looking |
| Aug 8, 2015 at 17:22 | review | Suggested edits | |||
| S Aug 8, 2015 at 18:13 | |||||
| Jun 3, 2015 at 13:53 | history | edited | hqt | CC BY-SA 3.0 | added 8 characters in body |
| May 4, 2015 at 7:25 | comment | added | testing | I noted that the pictures are hosted on dropbox. Wouldn't it be better to host the images on SO? | |
| Apr 27, 2015 at 2:41 | comment | added | EricWasTaken | It is worth it to point out that when adding new constraints, newer versions of Xcode allow you to uncheck a box for "Constrain to Margins" that sets the same "Relative to Margins" flag. This is useful because it saves a few clicks! Great answer BTW, so well explained and the images were very helpful. | |
| S Apr 7, 2015 at 22:05 | history | suggested | CommunityBot | CC BY-SA 3.0 | fixed grammar. added clarification. |
| Apr 7, 2015 at 21:38 | review | Suggested edits | |||
| S Apr 7, 2015 at 22:05 | |||||
| Feb 25, 2015 at 9:01 | comment | added | KPM | "I don't understand at all why people are complaining". Well, maybe the behaviour changed with one of the last betas, I haven't checked. But at least a few months ago, it did cause a crash even if you didn't try to set the layoutMargins in code. | |
| Feb 24, 2015 at 10:19 | comment | added | Bhumit Mehta | Thanks for the detailed explanation. I am marking this as an accepted answer as this explains things nicely. | |
| Feb 24, 2015 at 10:17 | vote | accept | Bhumit Mehta | ||
| Feb 24, 2015 at 10:01 | history | answered | Scott Zhu | CC BY-SA 3.0 |