Tried to debug all this ambiguity. Argh.

This commit is contained in:
Pietro Gagliardi 2016-06-07 23:24:29 -04:00
parent 0fe5214c09
commit 2f3c0449ba
1 changed files with 13 additions and 0 deletions

View File

@ -186,6 +186,14 @@ struct uiForm {
@"uiForm child trailing edge constraint");
[self addConstraint:c];
[self->hEdges addObject:c];
c = mkConstraint(fc.label, NSLayoutAttributeTrailing,
NSLayoutRelationEqual,
[fc view], NSLayoutAttributeLeading,
1, 0,
@"TODO");
[self addConstraint:c];
[self->inBetweens addObject:c];
}
// we don't arrange the labels vertically; that's done when we add the control since those constraints don't need to change (they just need to be at their baseline)
@ -263,6 +271,11 @@ struct uiForm {
CGFloat padding;
NSLayoutConstraint *c;
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 3*NSEC_PER_SEC),
dispatch_get_main_queue(),
^{
[[self window]visualizeConstraints:[self constraints]];
});
self->padded = p;
padding = [self paddingAmount];
for (c in self->inBetweens)