From 5ea16d6bf617185aec6bcc984e00758cead3e0c5 Mon Sep 17 00:00:00 2001 From: sungjin-woo Date: Fri, 24 Nov 2017 15:50:52 +0900 Subject: [PATCH] Change embeded alert references - Change references for embeded alert controller, alert and action sheet to weak reference explicitly --- RMUniversalAlert.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RMUniversalAlert.m b/RMUniversalAlert.m index 1b7e998..e0d18f8 100644 --- a/RMUniversalAlert.m +++ b/RMUniversalAlert.m @@ -20,9 +20,9 @@ @interface RMUniversalAlert () -@property (nonatomic) UIAlertController *alertController; -@property (nonatomic) UIAlertView *alertView; -@property (nonatomic) UIActionSheet *actionSheet; +@property (nonatomic, weak) UIAlertController *alertController; +@property (nonatomic, weak) UIAlertView *alertView; +@property (nonatomic, weak) UIActionSheet *actionSheet; @property (nonatomic, assign) BOOL hasCancelButton; @property (nonatomic, assign) BOOL hasDestructiveButton;