I am trying to persist the UISwitch state in my settings view of my application. Basically it is a UITableView and contains a few switches to get the u
UISwitch
UITableView
Instead of using setObject:forKey: try using setBool:forKey:.
[[NSUserDefaults standardUserDefaults] setBool:TRUE forKey:@"SyncAtStartup"];