How can I embed a UISwitch on a UITableView cell? Examples can be seen in the settings menu.
UISwitch
UITableView
My current solution:
if (indexPath.row == 0) {//If you want UISwitch on particular row UISwitch *theSwitch = [[UISwitch alloc] initWithFrame:CGRectZero]; [cell addSubview:theSwitch]; cell.accessoryView = theSwitch; }