Я настраиваю пользовательский UITableViewCell
, используя ячейку прототипа в Storyboard. Однако все элементы UILabel
(и другие элементы пользовательского интерфейса), похоже, не добавляются в ячейку contentView
, а добавляются непосредственно в представление UITableViewCell
. Это создает проблемы, когда ячейка помещается в режим редактирования, поскольку содержимое не изменяется автоматически/отступом (что бы оно делало, если они находились внутри contentView
).
Есть ли способ добавить элементы пользовательского интерфейса в contentView
при прокладке ячейки с помощью элементов интерфейса Builder/Storyboard/prototype? Единственный способ, который я нашел, - создать все в коде и использовать [cell.contentView addSubView:labelOne]
, что было бы не очень удобно, так как гораздо проще компоновать ячейку графически.