MMKCompositeIcon
@interface MMKCompositeIcon : NSObject |
Combines multiple icons into one.
Summary
Instance methods
- (void)setIconWithName:(nonnull NSString *)name |
- (void)setIconWithName:(nonnull NSString *)name |
- (void)setIconStyleWithName:(nonnull NSString *)name |
- (void)removeIconWithName:(nonnull NSString *)name; |
- (void)removeAll; |
Properties
@property (nonatomic, readonly, getter=isValid) BOOL valid; |
Instance methods
setIconWithName:image:style:
- (void)setIconWithName:(nonnull NSString *)name |
Creates or resets a named layer with an icon and its style.
setIconWithName:image:style:callback:
- (void)setIconWithName:(nonnull NSString *)name |
Creates or resets a named layer that contains an icon and its style.
Parameters |
|
onFinished |
Called when an icon is loaded. |
setIconStyleWithName:style:
- (void)setIconStyleWithName:(nonnull NSString *)name |
Changes the icon style for a specific layer.
removeIconWithName:
- (void)removeIconWithName:(nonnull NSString *)name; |
Removes the named layer.
removeAll
- (void)removeAll; |
Removes all layers.
Properties
valid
@property (nonatomic, readonly, getter=isValid) BOOL valid; |
Tells if this object is valid or no. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.