I’d like to programmatically create a custom UITableViewCell with a UISlider in the center and two images at either end. For an example see the Brightness setting on any iOS device. It has a UISlider in the center and two sun-like images at either end (one small and one large). Here’s basically what I’m talking about:

What’s the easiest way to programmatically create this custom UITableViewCell?
Cheers!
The easiest way to add the images at either end of a UISlider is to use
setMinimumTrackImage:forState:andsetMaximumTrackImage:forState:.To add a UISlider to a UITableViewCell, just add it as a subview of the cell’s
contentView, and set the slider’sframe(orboundsandcenter) andautoresizingMaskas appropriate.Ignore the cell’s
imageView,textLabel, anddetailTextLabelproperties; if you never access these properties, the cell may not even bother to create the corresponding views.