Boolean

BOOL properties must be either YES or NO. The default value of a BOOL property is NO. You can change the default value of the property by assigning a new value in an overridden reset method.

BOOL properties should be declared in your APLConfiguration subclass header file as follows:

@import AppfigurateLibrary;

@interface Configuration : APLConfiguration

@property(nonatomic, assign) BOOL propertyName;
...

Switch UI

Allows a boolean property to be changed in Appfigurate using a switch.

Prototype

BOOL_PROPERTY(propertyName, description, restart)

If restart is YES, then the app will be restarted if the property value changes.

Example

@import AppfigurateLibrary;

@interface Configuration : APLConfiguration

@property(nonatomic, assign) BOOL logging;

@end

@implementation Configuration

BOOL_PROPERTY(logging, @"Enable debug logging to console", NO);

- (void) reset {
    self.logging = YES;
}
...

Last updated