Is it possible to set the accessory view of a UITableCellView in IB?

Problem:


In the storyboard editor of Xcode 7.2, it doesn't seem to be possible to set the accessory view of a UITableCellView. It seems that it should be an obvious operation (for instance to add a UISwitch view).


If you're a contorsionist, it's still possible to connect the accessoryView outlet if a UITableCellView (Basic style) to a UISwitch for instance but:


- Xcode still complains that the autolayout constraints are not being set.

- when you build and run the project, the UISwitch view is drawn in the left top corner of the UITableCellView. It used to work in the default simulator that is bundled with Xcode 6.


Question:


Is setting the accessory view of a UITableCellView something that can only be done by code? This would quite a pity.


Note:


I haven't found a solution suggested on Stack Overflow that just works.

Replies

Based on feedback from Radar, this is a known limitation.