Custom keyboards override's inputView on UITextField/UITextView
| Originator: | jeremyfoo | ||
| Number: | rdar://18560446 | Date Originated: | 06-Oct-2014 05:30 PM |
| Status: | Open | Resolved: | NO |
| Product: | iOS | Product Version: | 8.x |
| Classification: | Reproducible: | Always |
Summary: If the previous keyboard is a custom keyboard from a keyboard extension, setting the inputView of a UITextField/UITextView to the view of a UIViewController will have the custom keyboard prevent the custom inputView from appearing. UIView hierarchy analysis shows that the view is resized to a negative y origin and 0 width. However, just using a regular view that wasn't created in the loadView method of the UIViewController will not cause issues. You will however lose view events. Steps to Reproduce: 0. Run "TheInputView" Project. 1. Tap the text field at the bottom of the screen to expand and show the keyboard. 2. Switch to a custom keyboard. 3. Tap the "UIView" button; You should successfully switch to an Orange view where the custom keyboard previously should be. This is correct. 4. Tap the "View Controller's view" button; Purple view appears momentarily before the custom keyboard takes over. This is wrong. Expected Results: The purple view should appear where the custom keyboard previously was and remain. Actual Results: Purple view appears momentarily before the custom keyboard takes over. Version: iOS 8.x Notes: This works correctly in anything prior to iOS 8. Configuration: All iPhones Attachments: 'TheInputView.zip' was successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Nope. This issue still happens on iOS 8.1GM (Build: 12B411).
The test case is running the sample project with the reproduction steps on a device with iOS 8.1GM.
Apple Developer Relations29-Oct-2014 07:16 PM
Please verify this issue with the latest iOS 8.1 GM (Build: 12B411) and reply back with your results.
iOS 8.1 GM (Build: 12B411) http://support.apple.com/kb/DL1758 https://developer.apple.com/devcenter/ios/index.action Posted: Oct 20th, 2014
If this issue is still occurring, please include any relevant logs, and or a test case with your update.
Logging Instructions/Test Case Requirements: https://developer.apple.com/bug-reporting/ios/