martinjuhasz / MJPopupViewController

A UIViewController Category to display a ViewController as a popup with different transition effects.
MIT License
963 stars 219 forks source link

UIViewController+MJPopupViewController.m line 349 __78-[UIViewController(MJPopupViewController) fadeViewOut:sourceView:overlayView:]_block_invoke137 #56

Open JulesMoorhouse opened 10 years ago

JulesMoorhouse commented 10 years ago

Hi

I'm getting the follow crash. Is there a fix for this ?

Thanks

UIViewController+MJPopupViewController.m line 349 __78-[UIViewController(MJPopupViewController) fadeViewOut:sourceView:overlayView:]_block_invoke137

Crashed: com.apple.main-thread EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x2000000c

Thread : Crashed: com.apple.main-thread 0 libobjc.A.dylib 0x3b3a7b66 objc_msgSend + 5 1 UIKit 0x338f3ff5 -[UITextField _shouldEndEditing] + 72 2 UIKit 0x338f3fa9 -[UITextField canResignFirstResponder] + 20 3 UIKit 0x3387867d -[UIResponder resignFirstResponder] + 68 4 UIKit 0x338f3ea5 -[UITextField resignFirstResponder] + 128 5 UIKit 0x338eb455 -[UIView(Hierarchy) _removeFirstResponderFromSubtree] + 180 6 UIKit 0x33a698c3 UIViewWillBeRemovedFromSuperview + 70 7 UIKit 0x337d2091 -[UIView(Hierarchy) removeFromSuperview] + 56 8 My App 0x000fd743 78-[UIViewController(MJPopupViewController) fadeViewOut:sourceView:overlayView:]_block_invoke137 (UIViewController+MJPopupViewController.m:349) 9 UIKit 0x3380be6d -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 284 10 UIKit 0x3380bab7 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 178 11 UIKit 0x3380b9cf -[UIViewAnimationState animationDidStop:finished:] + 66 12 QuartzCore 0x33461413 CA::Layer::run_animation_callbacks(void*) + 234 13 libdispatch.dylib 0x3b8910af _dispatch_client_callout + 22 14 libdispatch.dylib 0x3b8939a9 _dispatch_main_queue_callback_4CF + 268 15 CoreFoundation 0x3101a5b1 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 8 16 CoreFoundation 0x31018e7d __CFRunLoopRun + 1308 17 CoreFoundation 0x30f83471 CFRunLoopRunSpecific + 524 18 CoreFoundation 0x30f83253 CFRunLoopRunInMode + 106 19 GraphicsServices 0x35cbd2eb GSEventRunModal + 138 20 UIKit 0x33838845 UIApplicationMain + 1136 21 My App 0x000d7083 main (main.m:14)