Skip to content

Commit

Permalink
refactor: 整理定制节点标识的方式。
Browse files Browse the repository at this point in the history
  • Loading branch information
Hulk committed Mar 25, 2022
1 parent 7bd8727 commit bf6f5a6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ NS_ASSUME_NONNULL_BEGIN

@interface UIResponder (PrismIntercept)
@property (nonatomic, copy) NSString *prismAutoDotItemName; //辅助参数,用来存储通用ID
@property (nonatomic, copy) NSString *prismAutoDotSpecialMark; //特殊节点标识
@property (nonatomic, copy) NSString *prismAutoDotFinalMark; //支持自定义节点标识
@property (nonatomic, copy) NSString *prismAutoDotSpecialMark; //支持为节点自定义标识
@end

NS_ASSUME_NONNULL_END
7 changes: 0 additions & 7 deletions iOS/DiDiPrism/Src/Core/Intercept/UIResponder+PrismIntercept.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,4 @@ - (NSString *)prismAutoDotSpecialMark {
- (void)setPrismAutoDotSpecialMark:(NSString *)prismAutoDotSpecialMark {
objc_setAssociatedObject(self, @selector(prismAutoDotSpecialMark), prismAutoDotSpecialMark, OBJC_ASSOCIATION_COPY_NONATOMIC);
}

- (NSString *)prismAutoDotFinalMark {
return objc_getAssociatedObject(self, _cmd);
}
- (void)setPrismAutoDotFinalMark:(NSString *)prismAutoDotFinalMark {
objc_setAssociatedObject(self, @selector(prismAutoDotFinalMark), prismAutoDotFinalMark, OBJC_ASSOCIATION_COPY_NONATOMIC);
}
@end

0 comments on commit bf6f5a6

Please sign in to comment.