#import /** * Custom controls have similar format as Android. * * Android - iOS: * ControlButton - same * ControlData - NSDictionary */ @interface ControlButton : UIButton { } @property(nonatomic, strong) NSMutableDictionary* properties; + (id)buttonWithProperties:(NSMutableDictionary *)propArray willUpdate:(BOOL)update; + (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