Some comments to the code
Implementing preferences view/edit/save

Preferences displayed in the table view with custom PreferenceCell's.
There implemented custom cells for string and switch preferences.