iOS 11.1 keyboard bug - ios

For my existing iOS-projects, I noticed a keyboard bug when I run the app's on an iOS 11.1 simulator / real device: The bar above the keyboard is flipping high and down, after I switched from one textfield to another. For testing purposes, I created a new iOS project from scratch and the bug occurs again. Does anybody have the same issue (and maybe a solution)?
Under the link https://ufile.io/en8eg there is a demonstration video.
Greetings!

Try turning off the predictive text, I think that's what you were referring to when you said "the bar above the keyboard".
Try this in the viewDidLoad:
textField.autocorrectionType = .no // Swift 4

Related

Strange behavior of UITableViewController in iOS12 notch models, when the language setting of iPhone is Japanese or Chinese

This problem occurs depending on the language setting of iPhone.
I was able to confirm this problem in Japanese and Chinese.
In English etc. this problem does not occur.
I have created a simple project that installing UINavigationController on the storyboard, using Xcode10. rootViewController is the default UITableViewController.
I have not changed anything nearly anything on the storyboard.
I use an array of Strings 1 to 5 as datasource of UITableView.
If I build and rotate this on iOS12, UITableView will be plus offset top or it will be under NavigationBar.
This problem does not occur in iOS11. Also, no problems will occur in models without notch.
This problem occurs only with notched models of iOS12. (iPhone X, XS, XS Max, Xr)
Does anyone know the cause of this strange problem?
Thank you.
I uploaded my project to GitHub. Could you confirm it?
yaslam2222/SimpleTableViewController
I think you've found a bug! (As you have rightly explained, this happens only on an X device, only in iOS 12, and only in a Chinese or Japanese environment.)
Here is a workaround — not very satisfactory, but at least it is a workaround:
override func viewDidLoad() {
super.viewDidLoad()
self.edgesForExtendedLayout = []
}
I reported this bug to Apple. Apple responded that it shall be fixed on iOS 12.1.
I installed Xcode 10.1 beta 2 and confirmed this bug on iOS 12.1 simulator.
I confirmed that this bug has been fixed on iOS 12.1 (simulator).
Thank you.

iOS 7/8 system keyboard height

I've spent a few days trying to research this as I feel the answer would be a 1 liner, but here goes:
This question does not refer to custom keyboards on iOS but to the system keyboard that pops up for first responders.
I noticed that the default keyboard on most apps is shorter and more slick than the keyboard I end up getting on my app.
Here are the keyboards (sorry for not uploading the photos, I don't have enough rep yet)
Most apps:
http://i.imgur.com/FRU19oy.png
The keyboard I'm getting:
http://i.imgur.com/poEiNGs.png
Is it a some config that I'm missing? An OS version target issue?
Thanks!
You can add the following to your code:
textField.autocorrectionType = UITextAutocorrectionTypeNo;
Where textField is your text field or text view that is showing the keyboard.
It looks like you have a custom keyboard enabled on your device - you can disable it within the keyboard settings at the OS level. The "stretched" keyboard some apps experience is related to the scaling that takes place to stretch up iOS 7 apps to iPhone 6/6+ but it doesn't look like this is the issue you're experiencing based on the screenshots.

Warning in IOS when keyboard appear connect with device ( not for Simulator) [duplicate]

I have a UITextField Ctrl-dragged as an #Outlet in my .swift class.
Now in viewDidLoad i'm using this code
self.myTextField.keyboardType = UIKeyboardType.DecimalPad
When i launch my app on simulator and click on the UITextField i got this log
Can't find keyplane that supports type 8 for keyboard
iPhone-Portrait-DecimalPad;
using 2617181025_Portrait_iPhone-Simple-Pad_Default
I have no crash or something but the keyboard is not displayed. I also tried to set it from Storyboard but it's the same.
I also noticed that whenever i click on any UITextField the keyboard is never displayed (but no log is shown for the default keyboard)
I'm using Xcode-Beta 3 anyone faced this issue?
I too had this problem after updating to the latest Xcode Beta. The settings on the simulator are refreshed, so the laptop (external) keyboard was being detected. If you simply press:
iOS Simulator -> Hardware -> Keyboard -> Connect Hardware Keyboard
then the software keyboard will be displayed once again.
Go to iOS Simulator-> Hardware-> Keyboard -> Uncheck the Connect Hardware Keyboard Option.
This will fix the issue.
This message comes when the keyboard type is set to numberPad or DecimalPad. But the code works just fine. Looks like its a bug with the new Xcode.
If you're getting this bug with Xcode Beta, it's a beta bug and can be ignored (as far as I've been told). If you can build and run on a release build of Xcode without this error, then it is not your app that has the problem.
Not 100% on this, but see if this fixes the problem:
iOS Simulator -> Hardware -> Keyboard -> Toggle Software Keyboard.
Then, everything works
I have fixed this issue by unchecking 'Connect Hardware Keyboard'. Please refer to the image below to fix this issue
Xcode: 6.4 iOS:8
I got this error as well, but for a very different reason.
//UIKeyboardTypeNumberPad needs a "Done" button
UIBarButtonItem *doneBarButton = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemDone
target:self
action:#selector(doneBarButtonTapped:)];
enhancedNumpadToolbar = [[UIToolbar alloc]init]; // previously declared
[self.enhancedNumpadToolbar setItems:#[doneBarButton]];
self.myNumberTextField.inputAccessoryView = self.enhancedNumpadToolbar; //txf previously declared
I got the same error (save mine was "type 4" rather than "type 8"), until I discovered that I was missing this line:
[self.enhancedNumpadToolbar sizeToFit];
I added it, and the sun started shining, the birds resumed chirping, and all was well with the world.
PS You would also get such an error for other mischief, such as forgetting to alloc/init.
This error had come when your keyboard input type is Number Pad.I got same error than I change my Textfield keyboard input type to Default fix my issue.
There is no "Numeric Keypad" for iPads out of the box. When you specify one iPads display the normal keypad with the numeric part displayed. You can switch over to alpha characters, etc. If you want to display a numbers only keyboard for iPad you must implement it yourself.
See here: Number keyboard in iPad?
iOS Simulator -> I/O -> Keyboard -> Connect Hardware Keyboard
I was facing similar issues but above flow chart is the fix for your issue.
For me turning on and off the setting on
iOS Simulator -> Hardware -> Keyboard -> Connect Hardware Keyboard
proved to fix the issue on simulators.

Xcode iOS 8 Keyboard types not supported

I have a UITextField Ctrl-dragged as an #Outlet in my .swift class.
Now in viewDidLoad i'm using this code
self.myTextField.keyboardType = UIKeyboardType.DecimalPad
When i launch my app on simulator and click on the UITextField i got this log
Can't find keyplane that supports type 8 for keyboard
iPhone-Portrait-DecimalPad;
using 2617181025_Portrait_iPhone-Simple-Pad_Default
I have no crash or something but the keyboard is not displayed. I also tried to set it from Storyboard but it's the same.
I also noticed that whenever i click on any UITextField the keyboard is never displayed (but no log is shown for the default keyboard)
I'm using Xcode-Beta 3 anyone faced this issue?
I too had this problem after updating to the latest Xcode Beta. The settings on the simulator are refreshed, so the laptop (external) keyboard was being detected. If you simply press:
iOS Simulator -> Hardware -> Keyboard -> Connect Hardware Keyboard
then the software keyboard will be displayed once again.
Go to iOS Simulator-> Hardware-> Keyboard -> Uncheck the Connect Hardware Keyboard Option.
This will fix the issue.
This message comes when the keyboard type is set to numberPad or DecimalPad. But the code works just fine. Looks like its a bug with the new Xcode.
If you're getting this bug with Xcode Beta, it's a beta bug and can be ignored (as far as I've been told). If you can build and run on a release build of Xcode without this error, then it is not your app that has the problem.
Not 100% on this, but see if this fixes the problem:
iOS Simulator -> Hardware -> Keyboard -> Toggle Software Keyboard.
Then, everything works
I have fixed this issue by unchecking 'Connect Hardware Keyboard'. Please refer to the image below to fix this issue
Xcode: 6.4 iOS:8
I got this error as well, but for a very different reason.
//UIKeyboardTypeNumberPad needs a "Done" button
UIBarButtonItem *doneBarButton = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemDone
target:self
action:#selector(doneBarButtonTapped:)];
enhancedNumpadToolbar = [[UIToolbar alloc]init]; // previously declared
[self.enhancedNumpadToolbar setItems:#[doneBarButton]];
self.myNumberTextField.inputAccessoryView = self.enhancedNumpadToolbar; //txf previously declared
I got the same error (save mine was "type 4" rather than "type 8"), until I discovered that I was missing this line:
[self.enhancedNumpadToolbar sizeToFit];
I added it, and the sun started shining, the birds resumed chirping, and all was well with the world.
PS You would also get such an error for other mischief, such as forgetting to alloc/init.
This error had come when your keyboard input type is Number Pad.I got same error than I change my Textfield keyboard input type to Default fix my issue.
There is no "Numeric Keypad" for iPads out of the box. When you specify one iPads display the normal keypad with the numeric part displayed. You can switch over to alpha characters, etc. If you want to display a numbers only keyboard for iPad you must implement it yourself.
See here: Number keyboard in iPad?
iOS Simulator -> I/O -> Keyboard -> Connect Hardware Keyboard
I was facing similar issues but above flow chart is the fix for your issue.
For me turning on and off the setting on
iOS Simulator -> Hardware -> Keyboard -> Connect Hardware Keyboard
proved to fix the issue on simulators.

iOS accessibility hint not being spoken on an Text Field

We have created a very simple app using storyboards which contains a single screen with a Text Field. I have set the Accessibility Label and Hint on the Text Field however when I deploy the app to my iPhone, Voiceover only reads out the Label not the Hint.
I am assuming this must be a bug, has anyone seen similar behaviour?
Note we were developing using Xcode 4.2 under Lion and deploying to an iPhone running 5.0.1.
Thanks
without looking at your code, that's kind of hard; this article is quite in depth and explains Voiceover, Labels, and Hints very well:
http://mattgemmell.com/2010/12/19/accessibility-for-iphone-and-ipad-apps/
I am seeing this behavior on iOS 5.0 and 5.1, but it appears to be fixed in iOS 6.0.

Resources