[UIResponder firstResponder] stuck in infinite loop?
[UIResponder firstResponder] stuck in infinite loop?
- Subject: [UIResponder firstResponder] stuck in infinite loop?
- From: Daniel Stenmark <email@hidden>
- Date: Thu, 22 Oct 2015 23:56:59 +0000
- Thread-topic: [UIResponder firstResponder] stuck in infinite loop?
I’m trying to remove a contained child view controller from it’s hierarchy and present it, but it’s resulting in [UIResponder firstResponder] getting stuck in an infinite loop.
- (void)menuActionButtonTapped:(id)sender {
[self.menuViewController removeFromParentViewController];
[self presentViewController:self.menuViewController animated:NO completion:^{
}];
}
#0 0x000000011326ec43 in lookUpImpOrNil ()
#1 0x00000001132663dd in class_getMethodImplementation ()
#2 0x000000011327ab55 in weak_read_no_lock ()
#3 0x000000011327b4c6 in objc_loadWeakRetained ()
#4 0x00000001119a49c6 in -[UIViewController _popoverController] ()
#5 0x0000000111995cbe in -[UIViewController nextResponder] ()
#6 0x0000000111a0ff5b in -[UIResponder firstResponder] ()
#7 0x0000000111a0ff73 in -[UIResponder firstResponder] ()
#8 0x0000000111a0ff73 in -[UIResponder firstResponder] ()
#9 0x0000000111a0ff73 in -[UIResponder firstResponder] ()
#10 0x0000000111a0ff73 in -[UIResponder firstResponder] ()
...
#261590 0x0000000111a0ff73 in -[UIResponder firstResponder] ()
#261591 0x0000000111a0ff73 in -[UIResponder firstResponder] ()
#261592 0x0000000111a0ff73 in -[UIResponder firstResponder] ()
#261593 0x00000001119a9dc3 in -[UIViewController _presentViewController:modalSourceViewController:presentationController:animationController:interactionController:completion:] ()
#261594 0x00000001119abd4c in -[UIViewController _presentViewController:withAnimationController:completion:] ()
#261595 0x00000001119aec5c in -[UIViewController _performCoordinatedPresentOrDismiss:animated:] ()
#261596 0x00000001119ae76b in -[UIViewController presentViewController:animated:completion:] ()
#261597 0x000000010edafc94 in -[OTADiningModeViewController menuActionButtonTapped:] at /Users/dstenmark/Work/opentable-iphone/OpenTable/Classes/OTADiningModeViewController.m:239
#261598 0x0000000111807e91 in -[UIApplication sendAction:to:from:forEvent:] ()
#261599 0x00000001119734d8 in -[UIControl sendAction:to:forEvent:] ()
#261600 0x00000001119737a4 in -[UIControl _sendActionsForEvents:withEvent:] ()
#261601 0x00000001119728d4 in -[UIControl touchesEnded:withEvent:] ()
#261602 0x0000000111cd99ba in _UIGestureRecognizerUpdate ()
#261603 0x00000001118759c0 in -[UIWindow _sendGesturesForEvent:] ()
#261604 0x0000000111876bf6 in -[UIWindow sendEvent:] ()
#261605 0x00000001118262fa in -[UIApplication sendEvent:] ()
#261606 0x0000000111800abf in _UIApplicationHandleEventQueue ()
#261607 0x000000011371f011 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ ()
#261608 0x0000000113714f3c in __CFRunLoopDoSources0 ()
#261609 0x00000001137143f3 in __CFRunLoopRun ()
#261610 0x0000000113713e08 in CFRunLoopRunSpecific ()
#261611 0x0000000116087ad2 in GSEventRunModal ()
#261612 0x000000011180630d in UIApplicationMain ()
#261613 0x000000010ee455ef in main at /Users/dstenmark/Work/opentable-iphone/OpenTable/Classes/main.m:16
#261614 0x0000000114ae992d in start ()
#261615 0x0000000114ae992d in start ()
Any thoughts as to where I could be going awry here?
Dan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden