As I understood after digging the docks on the network, the values set in the
Settings Bundle can be obtained through [
NSUserDefaults standartDefaults ].
What is the syntax of addressing a value using the example of the
Toggle Switch ?
Found that the key goes as follows:
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; toggleSwitchValue = [defaults objectForKey:@"PSToggleSwitchSpecifier"];
In this version,
id and not
BOOL as specified in the documentation. How to work with it to get its value?