Improve NSLayoutConstraint description

This commit is contained in:
Gregory John Casamento 2020-05-26 15:06:28 -04:00
parent 74afc3d88c
commit 7faefbb0dd

View file

@ -255,5 +255,19 @@ static NSMutableArray *activeConstraints;
return constraint;
}
- (NSString *) description
{
return [NSString stringWithFormat: @"%@ <firstItem = %@, firstAttribute = %ld, relation = %ld, secondItem = %@, "
"secondAttribute = %ld, multiplier = %f, constant = %f>",
[super description],
_firstItem,
_firstAttribute,
_relation,
_secondItem,
_secondAttribute,
_multiplier,
_constant];
}
@end