Pen Li 7 лет назад
Родитель
Сommit
aff2a153df
2 измененных файлов с 11 добавлено и 11 удалено
  1. 3 3
      common/LayoutConstraint/UIView+RAConstraint.h
  2. 8 8
      common/LayoutConstraint/UIView+RAConstraint.m

+ 3 - 3
common/LayoutConstraint/UIView+RAConstraint.h

@@ -20,6 +20,8 @@
 @property (nonatomic,copy) RAConstraint *(^ra_size_greaterThanOrEqualTo)(CGFloat size);
 @property (nonatomic,copy) RAConstraint *(^ra_size_greaterThanOrEqualTo)(CGFloat size);
 @property (nonatomic,copy) RAConstraint *(^ra_size_lessThanOrEqualTo)(CGFloat size);
 @property (nonatomic,copy) RAConstraint *(^ra_size_lessThanOrEqualTo)(CGFloat size);
 
 
+@property (nonatomic,readonly,copy) void (^ra_modify)(CGFloat constant);
+
 @end
 @end
 
 
 #pragma mark - Maker
 #pragma mark - Maker
@@ -41,8 +43,6 @@
 @property (nonatomic,strong,readonly) RAConstraint *ra_safeAreaRight API_AVAILABLE(ios(11.0),tvos(11.0));
 @property (nonatomic,strong,readonly) RAConstraint *ra_safeAreaRight API_AVAILABLE(ios(11.0),tvos(11.0));
 @property (nonatomic,strong,readonly) RAConstraint *ra_safeAreaBottom API_AVAILABLE(ios(11.0),tvos(11.0));
 @property (nonatomic,strong,readonly) RAConstraint *ra_safeAreaBottom API_AVAILABLE(ios(11.0),tvos(11.0));
 
 
-@property (nonatomic,readonly,copy) void (^jk_modify)(CGFloat constant);
-
 @end
 @end
 
 
 #pragma mark - UIView
 #pragma mark - UIView
@@ -64,7 +64,7 @@
 @property (nonatomic,strong,readonly) RAConstraint *ra_safeAreaRight API_AVAILABLE(ios(11.0),tvos(11.0));
 @property (nonatomic,strong,readonly) RAConstraint *ra_safeAreaRight API_AVAILABLE(ios(11.0),tvos(11.0));
 @property (nonatomic,strong,readonly) RAConstraint *ra_safeAreaBottom API_AVAILABLE(ios(11.0),tvos(11.0));
 @property (nonatomic,strong,readonly) RAConstraint *ra_safeAreaBottom API_AVAILABLE(ios(11.0),tvos(11.0));
 
 
-@property (nonatomic,copy,readonly) void (^jk_modifyConstraint)(NSString *identifier, CGFloat constant);
+@property (nonatomic,copy,readonly) void (^ra_modifyConstraint)(NSString *identifier, CGFloat constant);
 
 
 - (void)ra_applyConstraints:(void(^)(RAConstraintMaker *maker))apply;
 - (void)ra_applyConstraints:(void(^)(RAConstraintMaker *maker))apply;
 
 

+ 8 - 8
common/LayoutConstraint/UIView+RAConstraint.m

@@ -36,7 +36,7 @@
 @property (nonatomic,copy) RAConstraint *(^ra_p_size_greaterThanOrEqualTo)(CGFloat size);
 @property (nonatomic,copy) RAConstraint *(^ra_p_size_greaterThanOrEqualTo)(CGFloat size);
 @property (nonatomic,copy) RAConstraint *(^ra_p_size_lessThanOrEqualTo)(CGFloat size);
 @property (nonatomic,copy) RAConstraint *(^ra_p_size_lessThanOrEqualTo)(CGFloat size);
 
 
-@property (nonatomic,copy) void (^jk_p_modify)(CGFloat constant);
+@property (nonatomic,copy) void (^ra_p_modify)(CGFloat constant);
 
 
 @end
 @end
 
 
@@ -145,7 +145,7 @@
             return weakSelf;
             return weakSelf;
         } copy];
         } copy];
         
         
-        self.jk_p_modify = [^(CGFloat constant) {
+        self.ra_p_modify = [^(CGFloat constant) {
             
             
             weakSelf.constant = constant;
             weakSelf.constant = constant;
             if (weakSelf.constraint) {
             if (weakSelf.constraint) {
@@ -193,8 +193,8 @@
     return self.ra_p_size_greaterThanOrEqualTo;
     return self.ra_p_size_greaterThanOrEqualTo;
 }
 }
 
 
-- (void (^)(CGFloat))jk_modify {
-    return self.jk_p_modify;
+- (void (^)(CGFloat))ra_modify {
+    return self.ra_p_modify;
 }
 }
 
 
 - (void)ra_uninstall {
 - (void)ra_uninstall {
@@ -295,7 +295,7 @@
 
 
 @property (nonatomic,strong) NSMutableArray<RAConstraint *> *constraints;
 @property (nonatomic,strong) NSMutableArray<RAConstraint *> *constraints;
 
 
-@property (nonatomic,copy) void (^jk_modifyConstraint)(NSString *identifier, CGFloat constant);
+@property (nonatomic,copy) void (^ra_modifyConstraint)(NSString *identifier, CGFloat constant);
 
 
 @end
 @end
 
 
@@ -317,7 +317,7 @@
                                                 ]];
                                                 ]];
         
         
         __weak typeof(self) weakSelf = self;
         __weak typeof(self) weakSelf = self;
-        self.jk_modifyConstraint = [^(NSString *identifier, CGFloat constant) {
+        self.ra_modifyConstraint = [^(NSString *identifier, CGFloat constant) {
             
             
             NSDictionary *constraintRes = [weakSelf findConstraintOfView:weakSelf.appliedView byIdentifier:identifier];
             NSDictionary *constraintRes = [weakSelf findConstraintOfView:weakSelf.appliedView byIdentifier:identifier];
             if (constraintRes) {
             if (constraintRes) {
@@ -619,8 +619,8 @@ static const char RAMaker = '\a';
 
 
 // modify
 // modify
 
 
-- (void (^)(NSString *, CGFloat))jk_modifyConstraint {
-    return [self ra_maker].jk_modifyConstraint;
+- (void (^)(NSString *, CGFloat))ra_modifyConstraint {
+    return [self ra_maker].ra_modifyConstraint;
 }
 }
 
 
 @end
 @end