JPButtonCategory icon indicating copy to clipboard operation
JPButtonCategory copied to clipboard

1行代码快速集成按钮延时处理(hook实战)

Results 1 JPButtonCategory issues
Sort by recently updated
recently updated
newest added

第一个问题是:在我有限的知识中,一般基本类型和BOOL常用**assgin**修饰,您的分类中声明属性只用了**nonatomic** 修饰是否就足够了? ``` /** 延迟时间 */ @property(nonatomic)NSTimeInterval jp_acceptEventInterval; /** 是否忽略点击 */ @property(nonatomic)BOOL jp_ignoreEvent; ``` 第二个问题是:如果**jp_acceptEventInterval** 和 **jp_ignoreEvent** 用**assign** 修饰了,那么 jp_ignoreEvent 的**setter** 方法否要用**OBJC_ASSOCIATION_ASSIGN**呢 ``` -(void)setJp_acceptEventInterval:(NSTimeInterval)jp_acceptEventInterval{ objc_setAssociatedObject(self, @selector(jp_acceptEventInterval), @(jp_acceptEventInterval), OBJC_ASSOCIATION_RETAIN_NONATOMIC); } -(void)setJp_ignoreEvent:(BOOL)jp_ignoreEvent{...