#import /** * Custom controls have similar format as Android. * * Android - iOS: * ControlButton - same * ControlData - NSDictionary */ @interface ControlButton : UIButton { } @property BOOL canBeHidden, isToggleOn; @property(nonatomic) NSMutableDictionary* properties; @property(nonatomic) UIColor* savedBackgroundColor; + (id)buttonWithProperties:(NSMutableDictionary *)propArray; - (BOOL)canSnap:(ControlButton *)button; - (NSString *)generateDynamicX:(CGFloat)x; - (NSString *)generateDynamicY:(CGFloat)y; - (void)snapAndAlignX:(CGFloat)x Y:(CGFloat)y; - (void)preProcessProperties; - (void)update; @end