ConfigReader
@interface ConfigReader : NSObject
Interface to the values stored in the Config.plist resource file
-
Return singleton instance
Declaration
Objective-C
+ (ConfigReader *)getInstance;
Swift
class func getInstance() -> ConfigReader!
Return Value
ConfigReader singleton
-
Undocumented
Declaration
Objective-C
@interface ConfigReader : NSObject
-
Return string value with specified key from Config.plist, or default value if not specified in the file
Declaration
Objective-C
- (NSString *)stringForKey:(NSString *)key defaultValue:(NSString *)defaultValue;
Swift
func string(forKey key: String!, defaultValue: String!) -> String!
Parameters
key
specified key from Config.plist
defaultValue
default value if not specified in the file
Return Value
string value for specified key
-
Return integer value with specified key from Config.plist, or default value if not specified in the file
Declaration
Objective-C
- (NSInteger)integerForKey:(NSString *)key defaultValue:(NSInteger)defaultValue;
Swift
func integer(forKey key: String!, defaultValue: Int) -> Int
Parameters
key
specified key from Config.plist
defaultValue
default value if not specified in the file
Return Value
integer value for specified key
-
Return long integer value with specified key from Config.plist, or default value if not specified in the file
Declaration
Objective-C
- (NSInteger)LongIntegerForKey:(NSString *)key defaultValue:(NSInteger)defaultValue;
Swift
func longInteger(forKey key: String!, defaultValue: Int) -> Int
Parameters
key
specified key from Config.plist
defaultValue
default value if not specified in the file
Return Value
long integer value for specified key
-
Return unsigned integer value with specified key from Config.plist, or default value if not specified in the file
Declaration
Objective-C
- (unsigned int)unsignedIntegerForKey:(NSString *)key defaultValue:(unsigned int)defaultValue;
Swift
func unsignedInteger(forKey key: String!, defaultValue: UInt32) -> UInt32
Parameters
key
specified key from Config.plist
defaultValue
default value if not specified in the file
Return Value
unsigned integer value for specified key
-
Return unsigned long integer value with specified key from Config.plist, or default value if not specified in the file
Declaration
Objective-C
- (unsigned long)unsignedLongIntegerForKey:(NSString *)key defaultValue:(unsigned long)defaultValue;
Swift
func unsignedLongInteger(forKey key: String!, defaultValue: UInt) -> UInt
Parameters
key
specified key from Config.plist
defaultValue
default value if not specified in the file
Return Value
unsigned long integer value for specified key
-
Return floating-point value with specified key from Config.plist, or default value if not specified in the file
Declaration
Objective-C
- (double)doubleForKey:(NSString *)key defaultValue:(double)defaultValue;
Swift
func double(forKey key: String!, defaultValue: Double) -> Double
Parameters
key
specified key from Config.plist
defaultValue
default value if not specified in the file
Return Value
floating-point value for specified key
-
Return boolean value with specified key from Config.plist, or default value if not specified in the file
Declaration
Objective-C
- (BOOL)boolForKey:(NSString *)key defaultValue:(BOOL)defaultValue;
Swift
func bool(forKey key: String!, defaultValue: Bool) -> Bool
Parameters
key
specified key from Config.plist
defaultValue
default value if not specified in the file
Return Value
fboolean value for specified key