mirror of
https://github.com/moparisthebest/mailiverse
synced 2024-11-18 23:15:03 -05:00
24 lines
530 B
C
24 lines
530 B
C
|
/**
|
||
|
* Author: Timothy Prepscius
|
||
|
* License: BSD + keep my name in the code!
|
||
|
*/
|
||
|
|
||
|
#import <UIKit/UIKit.h>
|
||
|
#include "MMTypes.h"
|
||
|
|
||
|
@interface UIToggleButton : UIButton
|
||
|
|
||
|
@property (strong, nonatomic) IBOutlet UIImage *imageCurrent;
|
||
|
@property (strong, nonatomic) IBOutlet UIImage *imageOn;
|
||
|
@property (strong, nonatomic) IBOutlet UIImage *imageOff;
|
||
|
|
||
|
- (bool) getState;
|
||
|
- (void) setState:(bool)on;
|
||
|
- (bool) toggle;
|
||
|
|
||
|
- (void) initToggle;
|
||
|
- (void) initToggleWithImagesOn:(UIImage *)_imageOn Off:(UIImage *)_imageOff;
|
||
|
- (void) reset;
|
||
|
|
||
|
@end
|