|
@@ -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
|