Skip to content

Commit 228c437

Browse files
committed
RFButton, add nullability.
1 parent 3bc2b6f commit 228c437

File tree

3 files changed

+23
-28
lines changed

3 files changed

+23
-28
lines changed

Diff for: RFButton/RFButton.h

+15-17
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
11
/*!
2-
RFButton
3-
RFUI
4-
5-
Copyright (c) 2012-2013 BB9z
6-
https://github.com/RFUI/Alpha
7-
8-
The MIT License (MIT)
9-
http://www.opensource.org/licenses/mit-license.php
2+
RFButton
3+
RFUI
4+
5+
Copyright (c) 2012-2013, 2018 BB9z
6+
https://github.com/RFUI/Alpha
107
11-
BETA
8+
The MIT License (MIT)
9+
http://www.opensource.org/licenses/mit-license.php
1210
*/
1311

1412
#import "RFControl.h"
1513

1614
@interface RFButton : RFControl
17-
@property (weak, nonatomic) IBOutlet UIImageView *icon;
18-
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
15+
@property (weak, nullable, nonatomic) IBOutlet UIImageView *icon;
16+
@property (weak, nullable, nonatomic) IBOutlet UILabel *titleLabel;
1917

20-
@property (copy, nonatomic) void (^highlightEffectBlock)(RFButton *sender);
21-
@property (copy, nonatomic) void (^unhighlightEffectBlock)(RFButton *sender);
22-
@property (copy, nonatomic) void (^selecteEffectBlock)(RFButton *sender);
23-
@property (copy, nonatomic) void (^unselecteEffectBlock)(RFButton *sender);
18+
@property (nullable, nonatomic) void (^highlightEffectBlock)(__kindof RFButton *__nonnull sender);
19+
@property (nullable, nonatomic) void (^unhighlightEffectBlock)(__kindof RFButton *__nonnull sender);
20+
@property (nullable, nonatomic) void (^selecteEffectBlock)(__kindof RFButton *__nonnull sender);
21+
@property (nullable, nonatomic) void (^unselecteEffectBlock)(__kindof RFButton *__nonnull sender);
2422

2523

26-
@property (weak, nonatomic) IBOutlet UIButton *agentButton;
27-
@property (copy, nonatomic) void (^touchUpInsideCallback)(RFButton *sender);
24+
@property (weak, nullable, nonatomic) IBOutlet UIButton *agentButton;
25+
@property (nullable, nonatomic) void (^touchUpInsideCallback)(__kindof RFButton *__nonnull sender);
2826
@end

Diff for: RFButton/RFControl.h

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
/*!
2-
RFControl
3-
RFUI
4-
5-
Copyright (c) 2013 BB9z
6-
https://github.com/RFUI/Alpha
7-
8-
The MIT License (MIT)
9-
http://www.opensource.org/licenses/mit-license.php
10-
11-
Alpha
2+
RFControl
3+
RFUI
4+
5+
Copyright (c) 2013 BB9z
6+
https://github.com/RFUI/Alpha
7+
8+
The MIT License (MIT)
9+
http://www.opensource.org/licenses/mit-license.php
1210
*/
1311

1412
#import <RFInitializing/RFInitializing.h>

Diff for: RFButton/RFControl.m

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#import "RFControl.h"
33

44
@implementation RFControl
5-
65
RFInitializingRootForUIView
76

87
- (void)onInit {

0 commit comments

Comments
 (0)