Browse Source

Fix warning

Marino Faggiana 7 năm trước cách đây
mục cha
commit
ceeb1615a3

+ 3 - 0
Libraries external/PSTCollectionView/PSTCollectionViewCell.m

@@ -40,6 +40,9 @@
 }
 }
 
 
 - (void)awakeFromNib {
 - (void)awakeFromNib {
+    
+    [super awakeFromNib];
+    
     self.reuseIdentifier = [self valueForKeyPath:@"reuseIdentifier"];
     self.reuseIdentifier = [self valueForKeyPath:@"reuseIdentifier"];
 }
 }
 
 

+ 1 - 1
Libraries external/PSTCollectionView/PSTGridLayoutInfo.m

@@ -39,7 +39,7 @@
 
 
 - (PSTGridLayoutInfo *)snapshot {
 - (PSTGridLayoutInfo *)snapshot {
     PSTGridLayoutInfo *layoutInfo = [self.class new];
     PSTGridLayoutInfo *layoutInfo = [self.class new];
-    layoutInfo.sections = self.sections;
+    layoutInfo.sections = (NSMutableArray *)self.sections;
     layoutInfo.rowAlignmentOptions = self.rowAlignmentOptions;
     layoutInfo.rowAlignmentOptions = self.rowAlignmentOptions;
     layoutInfo.usesFloatingHeaderFooter = self.usesFloatingHeaderFooter;
     layoutInfo.usesFloatingHeaderFooter = self.usesFloatingHeaderFooter;
     layoutInfo.dimension = self.dimension;
     layoutInfo.dimension = self.dimension;

+ 3 - 3
Libraries external/ZSSRichTextEditor/Third Party/CYRTextView.m

@@ -235,7 +235,7 @@ static const float kCursorVelocity = 1.0f/8.0f;
     if (gestureRecognizer == _singleFingerPanRecognizer || gestureRecognizer == _doubleFingerPanRecognizer)
     if (gestureRecognizer == _singleFingerPanRecognizer || gestureRecognizer == _doubleFingerPanRecognizer)
     {
     {
         CGPoint translation = [gestureRecognizer translationInView:self];
         CGPoint translation = [gestureRecognizer translationInView:self];
-        return fabsf(translation.x) > fabsf(translation.y);
+        return fabs(translation.x) > fabs(translation.y);
     }
     }
     
     
     return YES;
     return YES;
@@ -267,11 +267,11 @@ static const float kCursorVelocity = 1.0f/8.0f;
     
     
     if (cursorLocation > startRange.location)
     if (cursorLocation > startRange.location)
     {
     {
-        self.selectedRange = NSMakeRange(startRange.location, fabsf(startRange.location - cursorLocation));
+        self.selectedRange = NSMakeRange(startRange.location, fabs(startRange.location - cursorLocation));
     }
     }
     else
     else
     {
     {
-        self.selectedRange = NSMakeRange(cursorLocation, fabsf(startRange.location - cursorLocation));
+        self.selectedRange = NSMakeRange(cursorLocation, fabs(startRange.location - cursorLocation));
     }
     }
 }
 }