From 9f28d4ae257c8043a99284f729649b62bafded4f Mon Sep 17 00:00:00 2001 From: Andreas Linde Date: Tue, 17 Sep 2013 15:33:23 +0200 Subject: [PATCH] Workaround for iOS 7 bug with multiple modal view controllers in landscape on iPad The feedback compose view will be moved out of the center position (only iPad in landscape and iOS 7) if the textview becomes firstResponder in viewDidAppear. Moving that into the next runloop fixes the issue. --- Classes/BITFeedbackComposeViewController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/BITFeedbackComposeViewController.m b/Classes/BITFeedbackComposeViewController.m index 3f30c9559a..e2759be7c6 100644 --- a/Classes/BITFeedbackComposeViewController.m +++ b/Classes/BITFeedbackComposeViewController.m @@ -198,7 +198,8 @@ if (!_blockUserDataScreen) [self setUserDataAction]; } else { - [self.textView becomeFirstResponder]; + // Invoke delayed to fix iOS 7 iPad landscape bug, where this view will be moved if not called delayed + [self.textView performSelector:@selector(becomeFirstResponder) withObject:nil afterDelay:0.0]; } }