File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -8,5 +8,4 @@ ehthumbs.db
8
8
Thumbs.db
9
9
xcuserdata /
10
10
* .xcuserstate
11
-
12
- * .xcuserstate
11
+ .idea
Original file line number Diff line number Diff line change @@ -81,11 +81,15 @@ - (void)initAnimationManager {
81
81
}
82
82
83
83
- (void )layoutSubviews {
84
- self.pathManager .size = self.frame . size . height ;
84
+ self.pathManager .size = CGRectGetHeight ( self.frame ) ;
85
85
86
86
[super layoutSubviews ];
87
87
}
88
88
89
+ - (CGSize)intrinsicContentSize {
90
+ return self.frame .size ;
91
+ }
92
+
89
93
- (void )reload {
90
94
[self .offBoxLayer removeFromSuperlayer ];
91
95
self.offBoxLayer = nil ;
@@ -181,8 +185,8 @@ - (BOOL) pointInside:(CGPoint)point withEvent:(UIEvent *)event;
181
185
BOOL found = [super pointInside: point withEvent: event];
182
186
183
187
CGSize minimumSize = self.minimumTouchSize ;
184
- CGFloat width = self.bounds . size . width ;
185
- CGFloat height = self.bounds . size . height ;
188
+ CGFloat width = CGRectGetWidth ( self.bounds ) ;
189
+ CGFloat height = CGRectGetHeight ( self.bounds ) ;
186
190
187
191
if (found == NO && (width < minimumSize.width || height < minimumSize.height )) {
188
192
CGFloat increaseWidth = minimumSize.width - width;
@@ -205,7 +209,7 @@ - (void)drawRect:(CGRect)rect {
205
209
*/
206
210
- (void )drawEntireCheckBox {
207
211
if (!self.hideBox ) {
208
- if (!self.offBoxLayer || CGPathGetBoundingBox (self.offBoxLayer .path ). size . height == 0.0 ) {
212
+ if (!self.offBoxLayer || CGRectGetHeight ( CGPathGetBoundingBox (self.offBoxLayer .path )) == 0.0 ) {
209
213
[self drawOffBox ];
210
214
}
211
215
if (self.on ) {
You can’t perform that action at this time.
0 commit comments