floriankugler / FLKAutoLayout

UIView category which makes it easy to create layout constraints in code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

topLayoutGuide support

uzairkhanJedi opened this issue · comments

FLK doesn't seem to handle the following:

[self.topView alignTopEdgeWithView:self.topLayoutGuide predicate:@"0"];

Which I would assume represents the following code:

NSLayoutConstraint* cn = [NSLayoutConstraint constraintWithItem:self.topView
attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual
toItem:self.topLayoutGuide attribute:NSLayoutAttributeBottom
multiplier:1.0 constant:0];
[self.view addConstraint:cn];

@ukhan31 this was part of #13. You can now use constrainTopSpaceToView:predicate: