Commits

Anonymous committed fcc322c

fixing memory issue

Comments (0)

Files changed (1)

JKPopup/JKPopup.m

 		[UIView animateWithDuration:0.3f delay:0.0f options:UIViewAnimationCurveEaseOut animations:^() {
 			animationWindow.transform = CGAffineTransformMakeScale(0.5f, 0.5f);
 			animationWindow.alpha = 0.0f;
-		} completion:nil];
+		} completion:^(BOOL finished) {
+            		self.window.hidden = YES;
+            		self.window = nil;
+        	}];
 	} else {
 		self.window.hidden = YES;
 		self.window = nil;