萤石云 iOSSDK,移植跨平台相关工程
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
//  UIButton+DDKit.h
//  DDCategory
//
//  Created by DeJohn Dong on 15-3-20.
//  Copyright (c) 2015年 DDKit. All rights reserved.
//
 
#import <UIKit/UIKit.h>
 
@interface UIButton (DDKit)
 
@end
 
@interface UIButton (DDBadgeView)
 
/**
 *  Remove the badge value on the button.
 */
- (void)dd_removeBadgeValue;
 
/**
 *  Add a badge value view on the button.
 *
 *  @param strBadgeValue The badge value.
 *
 *  @return A view contrain the badge value.
 */
- (UIView *)dd_showBadgeValue:(NSString *)strBadgeValue;
 
/**
 *  Add a badage value view use the padding position.
 *
 *  @param strBadgeValue The badge value.
 *  @param point         The padding offset position.
 *
 *  @return A view contrain the badge value.
 */
- (UIView *)dd_showBadgeValue:(NSString *)strBadgeValue andPadding:(CGPoint)point;
 
@end
 
 
@interface UIButton (DDButtonCenterStyle)
 
/**
 *  Set the title & image center in the button bounds
 *
 *  @param space The title & image space
 */
- (void)dd_centerImageAndTitle:(float)space;
 
/**
 *  Default center method.
 */
- (void)dd_centerImageAndTitle;
 
@end