From 5c514405fad3c97b6fbf3deb77522140307c2a81 Mon Sep 17 00:00:00 2001 From: ChrisPan Date: Mon, 15 May 2023 23:17:33 +0800 Subject: [PATCH] change property timeLabel from strong to weak to avoid reatin cycle. --- MZTimerLabel/MZTimerLabel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MZTimerLabel/MZTimerLabel.h b/MZTimerLabel/MZTimerLabel.h index b445681..2a29efa 100644 --- a/MZTimerLabel/MZTimerLabel.h +++ b/MZTimerLabel/MZTimerLabel.h @@ -73,7 +73,7 @@ typedef enum{ @property (nonatomic,copy) NSString *timeFormat; /*Target label obejct, default self if you do not initWithLabel nor set*/ -@property (nonatomic,strong) UILabel *timeLabel; +@property (nonatomic,weak) UILabel *timeLabel; /*Used for replace text in range */ @property (nonatomic, assign) NSRange textRange;