MJPopupViewController
MJPopupViewController copied to clipboard
how free memory when popup is dismissed
Hello, i display a UIView in your amazing MJPopup and when the view is open the memory increase of 25MB, and it's ok because it's a complex view with a lot of subviews, but when i dismiss the MJPopup the memory doesn't free, but remain of that value, how i can release it?
Same problem. Any resolution?
I found that setting the 'viewController = nil' after dismissing works
I have the same issue: I found the solution is: MyViewController *myViewController = (__bridge MyViewController *)(CFRetain((__bridge CFTypeRef)([[MyViewController alloc] initWithContentViewController:otherController]))); [self presentPopupViewController:myViewController animationType:MJPopupViewAnimationSlideTopBottom]; but memory is still leak. anybody can help me?
Keep a reference to the popover stored as a property. When its dismissed, set the property to nil (as I mentioned above)