I'm looking to programmatically minimize the auto-correct ribbon found in iOS 8. Minimize meaning achieving the same effect as tapping and sliding the auto-correct ribbon down to hide/minimize it. I know how to remove it completely with _myTextView.autocorrectionType = UITextAutocorrectionTypeNo; - but this does not give the option to pull it back up if the user still wants it.
I haven't been able to find much about it. When I search for ...
hide autocorrect ribbon ios 8 sdk
Not much is returned of value. I've tried variations of that search but to no avail. Does anyone know if it's possible to do this?
Thanks in advance.
Currently i said no. Apple likes to give those kind of setting to the user only; not for developers. If you really need it off, you would have to design/create a Custom Keyboard.
Related
In an iOS application, is it possible to make own keyboard suggestions if the user taps a specific UITextField? The suggestion should only appear if the UITextField is empty.
By keyboard recommendations I mean the Predictive Keyboard:
Swift code is preferred.
Thanks!
I don't think you can provide suggestions to the actual keyboard so they get presented, but what you can do is write your own inputAccessoryView to be there instead, and handle the tapping/appending of text yourself, and possibly disable the completion from the keyboard. This is essentially what the messaging apps do to present a bar with buttons to add photos and attachments when writing.
Since you don't mention what you're trying to accomplish I don't know if this would make sense. Let me know if you want me to elaborate on how to do this in code.
I know it is possible to remove the QuickType keyboard of a UITextView or UITextField, by using .autoCorrectionType = .No , but this also disables auto-correct and autocompletion while the user is typing.
Is there a possible work around to this?
I'm trying to make a very clean note making app and have an accessory to the keyboard, that looks ugly with the quicktype bit.
I don't think what you are asking. Is possible but even if it were - is that a good idea?
You may not like how it looks but allot of people really like that feature and might not like it if you remove it.
Users who don't like that can turn it off in the phone's settings so if your user does have it - there is a good reason to keep it there
I'm currently using PhoneGap (Cordova) to build an App on iPad/iPhone.
One of my page in the app (in html/css/js), have more than 100 input type Number.
When i use finger to target each of them, it's working like a charm.
But when i use the prev/next button from IOS Keyboard, sometime, i don't know why, keyboard slide to down and when i try to open it again with targeting a input with my finger keyboard just blink... Impossible to fixe it without a scroll to release all event.
I've clean my code, refactored some part, look on google and stackoverflow if someone had the same problem but i found nothing...
Did someone know if it's a UIWebView problem ? Or phoneGap? or something else?
Thank's for reading.
If you are happy to just remove the next/previous buttons from your app entirely, the new Phonegap/Cordova 2.6.0rc1 has made this incredibly simple.
In your config.xml file, just set the HideKeyboardFormAccessoryBar preference to true.
In order for those two buttons to work you need to specify their behavior and it seems that it is not specified. Made some research and I think you have two options. Either you get rid of the next/previous buttons at all like explained here or you override textFieldShouldReturn: in a way similar to what is described in this post.
User can split keyboard in my app.
I want to prevent keyboard split from user how can i do this?
Thanks in advance.
It is not possible to disable the option of splitting keyboard from user. Please see here for other option.
Sorry to say that, No you can't do this through code.
This feature is introduced in iOS 5 and greater.
If user don't want this feature then they can turnoff it from the settings App.
As far as I know, till now (16th January-2013) apple didn't provided any API for doing this.
In iOS 5 you can hold your finger on text and you can select/highlight text and it will bring up a popup menu. I'd like to implement that same functionality for an application I am developing. It doesn't seem like there is any easy way to do that. Can anyone refer me to a tutorial & example code?
It is pretty much a default behavior. Make sure that you have this in your code:
myTextView.userInteractionEnabled = YES