How would one get UISwitch in UITableViewCell with text both sides?
Background – I currently have a UITableViewController and when it creates the UITableViewCell I place the UISwitch => accessoryView, and the text (only on left) => textLabel.
So what I want to do is have a UITableViewCell with text on both sides of the UISwitch, to use it for a setting: METERS <==> FEET
The best way to achieve what you want is to add the
UISwitchand 2UILabels to the cell’s contentView. But I would recommend using aUISegmentedControlfor this type of setting instead.