Browse Source

Using constraint identifier.

v1.2.4
Abhishek Banthia 9 years ago
parent
commit
11fef7bf75
  1. 6
      Clocker/Custom Table Cell Views/CLTimezoneCellView.m

6
Clocker/Custom Table Cell Views/CLTimezoneCellView.m

@ -153,14 +153,14 @@
}];
[self.sunriseSetTime.constraints enumerateObjectsUsingBlock:^(NSLayoutConstraint * _Nonnull constraint, NSUInteger idx, BOOL * _Nonnull stop) {
if (constraint.constant > 40)
if ([constraint.identifier isEqualToString:@"width"])
{
constraint.constant = sunriseWidth+3;
}
}];
[self.relativeDate setNeedsUpdateConstraints:YES];
[self.sunriseSetTime setNeedsUpdateConstraints:YES];
}

Loading…
Cancel
Save