Я хочу добавить в cellForRowAtIndexPath некоторые представления в представление содержимого моей ячейки и для них ограничения, но ничего не работает. У меня есть что-то вроде этого:
NSLayoutConstraint *constraint = [NSLayoutConstraint constraintWithItem:imageView
attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:cell.contentView attribute:NSLayoutAttributeLeft multiplier:1.0f constant:10.0f];
[cell.contentView addConstraint:constraint];
Как мне это сделать?