forked from zikong/javascriptcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUIButtonExport.h
More file actions
22 lines (20 loc) · 889 Bytes
/
UIButtonExport.h
File metadata and controls
22 lines (20 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//
// UIButtonExport.h
// javaScriptCore
//
// Created by 紫空 on 14-1-13.
// Copyright (c) 2014年 zikong. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <JavaScriptCore/JavaScriptCore.h>
@protocol UIButtonExport <JSExport>
@property(nonatomic, readonly, retain) UILabel *titleLabel;
@property(nonatomic, retain) UIColor *tintColor;
- (void)setTitleColor:(UIColor *)color forState:(UIControlState)state;
+ (id)buttonWithType:(UIButtonType)buttonType;
- (void)setBackgroundImage:(UIImage *)image forState:(UIControlState)state;
- (void)setImage:(UIImage *)image forState:(UIControlState)state;
- (void)setTitle:(NSString *)title forState:(UIControlState)state;
- (void)addTarget:(id)target action:(SEL)action forControlEvents:(UIControlEvents)controlEvents;
- (void)removeTarget:(id)target action:(SEL)action forControlEvents:(UIControlEvents)controlEvents;
@end