- Fallback to default control if custom control data size is over 100kb. - Implemented dynamic position. - Renamed folder from `customcontrols` to `controlmap` to match Android.
20 lines
460 B
Objective-C
20 lines
460 B
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
/**
|
|
* Custom controls have same format as Android.
|
|
*
|
|
* Android - iOS:
|
|
* ControlButton - same
|
|
* ControlData - NSArray with JSON components
|
|
*/
|
|
|
|
@interface ControlButton : UIButton {
|
|
}
|
|
|
|
@property (nonatomic, retain) NSMutableDictionary* properties;
|
|
|
|
+ (id)initWithProperties:(NSMutableDictionary *)propArray;
|
|
+ (id)initWithName:(NSString *)name keycode:(int)keycode rect:(CGRect)rect transparency:(float)transparency;
|
|
|
|
@end
|