File tree 2 files changed +9
-6
lines changed 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 @@ -94,11 +94,15 @@ - (void)initAnimationManager {
94
94
}
95
95
96
96
- (void )layoutSubviews {
97
- self.pathManager .size = self.frame . size . height ;
97
+ self.pathManager .size = CGRectGetHeight ( self.frame ) ;
98
98
99
99
[super layoutSubviews ];
100
100
}
101
101
102
+ - (CGSize )intrinsicContentSize {
103
+ return self.frame .size ;
104
+ }
105
+
102
106
- (void )reload {
103
107
[self .offBoxLayer removeFromSuperlayer ];
104
108
self.offBoxLayer = nil ;
@@ -208,8 +212,8 @@ - (BOOL) pointInside:(CGPoint)point withEvent:(UIEvent *)event;
208
212
BOOL found = [super pointInside: point withEvent: event];
209
213
210
214
CGSize minimumSize = self.minimumTouchSize ;
211
- CGFloat width = self.bounds . size . width ;
212
- CGFloat height = self.bounds . size . height ;
215
+ CGFloat width = CGRectGetWidth ( self.bounds ) ;
216
+ CGFloat height = CGRectGetHeight ( self.bounds ) ;
213
217
214
218
if (found == NO && (width < minimumSize.width || height < minimumSize.height )) {
215
219
CGFloat increaseWidth = minimumSize.width - width;
@@ -232,7 +236,7 @@ - (void)drawRect:(CGRect)rect {
232
236
*/
233
237
- (void )drawEntireCheckBox {
234
238
if (!self.hideBox ) {
235
- if (!self.offBoxLayer || CGPathGetBoundingBox (self.offBoxLayer .path ). size . height == 0.0 ) {
239
+ if (!self.offBoxLayer || CGRectGetHeight ( CGPathGetBoundingBox (self.offBoxLayer .path )) == 0.0 ) {
236
240
[self drawOffBox ];
237
241
}
238
242
if (self.on ) {
You can’t perform that action at this time.
0 commit comments