I have a table view in which I have 3 rows. First row is to select whether the clock should be in analog or digital fashion. Second row has a toggle switch which when switched on show the weather. Third row shows the timeformat i.e whether the user wants to select time in 24 hour format or 12 format.
The second row has been done. But I am confused on how to do with the first one i.e by default in the detailtextlabel of the first row digital should be displayed and when i click on the cell the text should change from digital to analog.
Replace cell.textLabel.text by lbl.text if you are using any another label for displaying these values.