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.
This commit is contained in:
Andreas Linde 2013-09-17 15:33:23 +02:00
parent 0d67c5d2cd
commit 9f28d4ae25

View File

@ -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];
}
}