SlyceTheme Class Reference
Inherits from | NSObject |
---|---|
Declared in | SlyceTheme.h |
+ resetToDefaults
Resets all properties to their defaults.
+ (void)resetToDefaults
Discussion
Use this method to reset all properties to the default values.
Declared In
SlyceTheme.h
– setFloat:forPropertyName:
Sets a float value for the provided property name.
- (void)setFloat:(CGFloat)value forPropertyName:(NSString *)propertyName
Parameters
value |
The CGFloat value to be used for the provided property name. |
---|---|
propertyName |
The property name defined by the Slyce Theming Guide. |
Discussion
Use this method to set a float value for a property defined in Slyce Theming Guide.
Declared In
SlyceTheme.h
– setString:forPropertyName:
Sets a string on the SlyceTheme for the provided property name.
- (void)setString:(NSString *)string forPropertyName:(NSString *)propertyName
Parameters
string |
The string to be used for the provided property name. |
---|---|
propertyName |
The property name defined by the Slyce Theming Guide. |
Discussion
Use this method to set one-off strings in the SDK. This will override any string set via the localization file.
Declared In
SlyceTheme.h
– setImage:forPropertyName:
Sets a UIImage on the SlyceTheme for the provided property name.
- (void)setImage:(UIImage *)image forPropertyName:(NSString *)propertyName
Parameters
image |
The image to be used for the provided property name. |
---|---|
propertyName |
The property name defined by the Slyce Theming Guide. |
Discussion
Use this method to set custom images. Provided images must be propery instantiated and ready to use.
Declared In
SlyceTheme.h
– setFontName:forPropertyName:
Sets an NSString on the SlyceTheme that represents a font for the provided property name.
- (void)setFontName:(NSString *)fontName forPropertyName:(NSString *)propertyName
Parameters
fontName |
The fontName to be used for the provided property name. |
---|---|
propertyName |
The property name defined by the Slyce Theming Guide. |
Discussion
Setting a font name will tell the SDK which font so use for the provided font name. The SDK manages font weight and size internally. If a font name is unavailable, a system font will be used.
Declared In
SlyceTheme.h
– setColor:forPropertyName:
Sets a UIColor on the SlyceTheme for the provided property name.
- (void)setColor:(UIColor *)color forPropertyName:(NSString *)propertyName
Parameters
color |
The color to be used for the provided property name. |
---|---|
propertyName |
The property name defined by the Slyce Theming Guide. |
Discussion
Use this method to set custom colors.
Declared In
SlyceTheme.h
– setAppearanceStyle:forPropertyName:
Sets an appearance stlye on the SlyceTheme for the provided property name.
- (void)setAppearanceStyle:(NSUInteger)style forPropertyName:(NSString *)propertyName
Parameters
style |
The appearanceStyle to be used for the provided property name. |
---|---|
propertyName |
The property name defined by the Slyce Theming Guide. |
Discussion
Use this method to adjust appearanace settings such as header types and other visibility properties.
Declared In
SlyceTheme.h