Display the iOS Emoji keyboard [duplicate] - ios

This question already has answers here:
Change the iOS keyboard layout to emoji?
(3 answers)
Closed 9 years ago.
Can I toggle between the standard keyboard and the Emoji keyboard as the input view for a UITextView even if the user doesn't have the Emoji keyboard added as one of their keyboards in Settings?

No, you can't, I'm afraid. The Emoji keyboard is effectively a "language" setting that the user has to make and you cannot influence that.
The only thing you can change is the keyboard type.
You might want to experiment with a custom keyboard view, like PMCustomKeyboard if that feature is really important to you.
I've also found an interesting article that might help you: Customizing the iOS keyboard.

Related

How to stop gray bar from appearing when UITextField is focused [duplicate]

This question already has answers here:
How to hide the shortcut bar in iOS9
(8 answers)
Closed 4 years ago.
I working on an app that is running on iPad with an external keyboard. I have a textfield at the bottom of screen. I tap in it, and this gray bar appears at the bottom of the screen, covering the textfield. In this case, I don't want it at all. What is it called? Is there some way to disable it?
It is the virtual keyboard. Every app, even on iPad, even with an external keyboard, must avoid having important interface covered by the virtual keyboard. You should take the usual steps for doing that, responding the keyboard-will-show notification in the usual way.

iOS App: Possible to make keyboard recommendations?

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.

How to add Underline/Bold/Italicize Abilities for UITextView Swift [duplicate]

This question already has answers here:
How to add toggleBoldface option to a UITextView in iOS?
(2 answers)
Closed 5 years ago.
I have been searching for quite a while for a solution as to how to grant users the ability to underline, italicize and bold text in a UITextView but have not been able to find a solid solution. I have realized that I will need to use an NSAttributedString but am not sure as to how to create the UI and format the string so I am able to save it to a database. If you could point me in a proper direction that would be greatly appreciated. Thanks!
The UI is simply an ordinary editable UITextView with allowsEditingTextAttributes set to true.
How you save is up to you, but the most universal solution is probably to pull out the UITextView's attributedText, archive it into an NSData (now known as Data in Swift), and save it off.

How to make a drop down menu in Swift [duplicate]

This question already has answers here:
Making a drop down list using swift? [closed]
(5 answers)
Closed 7 years ago.
My idea is that, in order to provide to the user different options to choose it would be very interesting to include some type of IBOutlet with a drop down menu on it.
This is how it should be seen.
How is the best way to do this?
Any suggestion would be very appreciated.
Presuming that the down arrow is a button to trigger the drop-down that you've illustrated, the first suggestion that comes to mind is to create an IBAction for that button that presents a table view as a child view controller. This table view will list out the "different options".
You could always use a UIAlertController. Apple suggests that developers follow the same consistent design throughout the entire OS. As a plus, UIAlertController is pretty easy to use. (Beware though, UIAlertView is deprecated. Don't use it by mistake.)
You could also (if you have a lot of choices) use a UIPickerView.

iOS 8 Custom Keyboard for native app

Can I develop keyboard extension for my app (only). Keyboard extension must work only in app not in all system.
I know about apple guide:
BEFORE YOU BEGIN
Make sure a custom, systemwide keyboard is indeed what you want to
develop. To provide a fully custom keyboard for just your app or to
supplement the system keyboard with custom keys in just your app, the
iOS SDK provides other, better options. Read about custom input views
and input accessory views in Custom Views for Data Input in Text
Programming Guide for iOS.
This methods offer only supplement the standard keyboards. I want fully customization keyboard in my app.
You don't want to create a keyboard extension, since it will be replace your keyboard in every application.
UITextView and UITextField have both inputView and inputAccessoryView properties.
inputAccessoryView is a view that appears on top of the keyboard, while inputView replaces the keyboard with the view you provide for the current editing field.
You can create your keyboard in a xib and instantiate it in the inputView property of your textField.
More details on Text Programming Guide for iOS
Why your question is iOS 8 Custom Keyboard for native app? you ask a different thing in your post…

Resources