Skip to content

Commit

Permalink
update: change __unsafe_unretained to weak
Browse files Browse the repository at this point in the history
  • Loading branch information
tigerAndBull committed Oct 22, 2021
1 parent bc7d94b commit 691a1e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions TABAnimatedDemo/TABAnimated/Product/TABAnimatedProductImpl.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@
#import "UIView+TABAnimated.h"

@interface TABAnimatedProductImpl() {
// self存在即存在
__unsafe_unretained UIView *_controlView;
// 进入加工流时,会取出targetView,结束时释放。加工流只会在持有targetView的controlView存在时执行。
__unsafe_unretained UIView *_targetView;
}

// self存在即存在
@property (nonatomic, weak) UIView *controlView;

// 加工等待队列
@property (nonatomic, strong) NSPointerArray *weakTargetViewArray;

Expand Down

0 comments on commit 691a1e6

Please sign in to comment.