mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-07 08:01:10 +00:00
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:
parent
0d67c5d2cd
commit
9f28d4ae25
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user