From 1378862f59abc06f07527f0e7fa5563c69214d9f Mon Sep 17 00:00:00 2001 From: KAWASHIMA Yoshiyuki Date: Fri, 6 Dec 2019 17:11:24 +0900 Subject: [PATCH] Fix warning Block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior fixes #18 --- Classes/M13BadgeView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/M13BadgeView.m b/Classes/M13BadgeView.m index f0d9552..0e51a3e 100644 --- a/Classes/M13BadgeView.m +++ b/Classes/M13BadgeView.m @@ -298,7 +298,7 @@ - (void)setText:(NSString *)text if (_animateChanges) { dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(_animationDuration * NSEC_PER_SEC)); dispatch_after(popTime, dispatch_get_main_queue(), ^(void){ - textLayer.string = text; + self->textLayer.string = text; }); } else { textLayer.string = text;