Customising the keyboard system wide for new language in iOS 8 - ios

From iOS 8 it is possible to add custom keyboard from our application which can be used system wide.
I need to create such a keyboard which can be used to input custom characters(a new language). I have these characters as images.
How can I use these images to input as characters from the keyboard into a textfield?
Please suggest any tips, link, methods etc..
Thanks in advance

You cannot put custom images in text fields because they are used to input text, not images.
The only possibility is custom font with images, but it will not be available system-wide and text fields are under control of the host app. For the available methods to insert characters see this documentation page

Try to follow this guide. Actually I've found plenty of similar guides using google.
Also Apple's custom keyboard guidelines might be helpful

Related

How to use Swift Playgrounds-style code input keyboard/text field in normal text view?

I'm making an iPad app that lets me write swift code into a text box and save it to a document. It doesn't do any compilation or any complicated stuff like that, so I'm just looking for a way to format the code correctly in the text box (ex: code autocomplete, autoindent if possible, and maybe syntax highlighting). In short, I'd like my app's text field and keyboard to look similar to those of Swift Playgrounds.
If Apple's provided the code (or a built-in keyboard option that can do even some of this), I'd appreciate a link to it. Otherwise, how would I go about building a custom keyboard and text field (or at least disable the features like autocomplete that would get in the way)?
Thanks.
As far as I know the only way to do what you describe is to build a Swift Playgrounds app that presents a code editor window. Apple does provide documentation on creating third party iPad Swift playgrounds. I suggest looking it up on Apple's site.

How to highlight text in a textView in Swift?

I would like to highlight a part of text in a UITextView like Pages for iOS or Safari for iOS do. I search the documentation but I can't find a way to do it, maybe because I'm a beginner in iOS development and I miss some crucial info. Somebody can help me?
Screenshot of Pages for iOS:
Screenshot of Safari for iOS:
If you only need to highlight a single, contiguous block of text you can set the selection programmatically. Your examples show multiple discontinuous parts however. For that you are going to need to use an attributed string. There is no other system-provided highlighting function. (There might be a third party library that offers this though - you'll have to search.)

Creating an Emoji-Like Keyboard

I am looking to create an emoji keyboard, which works similar to the native one on iPhone.
Currently all apps that provide a keyboard, do not let you insert an emoji inline with the text.. rather they provide you the ability to 'paste' it in like an image.
In addition to this, if an emoji is sent to a user that doesnt have the app installed, will they see the 'emoji' or will it display as a bunch of random characters?
I was hoping someone could point me in the right direction, as I cannot find the detail I am looking for.
Thanks
As for creating custom keyboards, you should get started by reading Apple's official documentation on the subject.
To answer your question about displaying Emoji: Any platform that supports Emoji will see them as an Emoji. A good source to see which platforms support it is CanIEmoji.com. Any other platforms will likely display it as an empty square, since it is not a supported character.
Any custom emoji keyboard you create will show up like a picture attachment, iOS especially doesn't allow custom inline emojis. Check out these two articles they might help with even more info:
https://www.bluecloudsolutions.com/blog/emoji-apps/
https://medium.com/#mantia/so-you-want-to-build-an-emoji-keyboard-26450ba5136a

iPhone: Custom keyboard layout and theme

I am wondering if anyone knows how to or can like me to some documentation or tutorials on how to make custom iOS keyboard sets as well as theming the iOS keyboard. I have read everything I could find, watched many youtube videos and read related posts on here. Most are just making a keyboard from scratch with a bunch of buttons or just tell you how to use the other iOS layouts like email, keypad etc. I need to create a custom keypad set. It must be able to be done, the Wolfram|Alpha Calculus apps have custom keyboard layouts and modified themes. If anyone has any info, please send it my way!
Example from the wolfram app:

Simple rich text view in cocoa-touch

I'm working on an iOS app in which I need to implement a basic text view with these requirements:
Rich text
Font emphasis (bold, italics).
Inline images for hyperlink-like actions.
Scrolling
Getting and setting the scroll offset (for remembering the previous scroll position).
Text selection
Getting the selected text character range.
Scrolling the view when selecting text, if needed.
I believe I could achieve this with UIWebView but the problem with this is that it provides very little control and is somewhat slow and shows a blank screen while loading. I was wondering if this could be achieved with Core Text but regarding the text selection I'm not sure. I'm hoping to achieve as iOS-native behaviour as possible.
What I'd need is pretty much like Instapaper's text view.
OmniGroup have done something like this by creating a text editor much like UITextView which draws the text using Core Text but also has all the editing features of UITextView as well as Rich text features from Core Text.
You can find it here.
There are some answers about this in StackOverflow, for example: Core text tutorial
However the best tutorial I ever read about Core Text in iOS is not listed in any answer I've found: How to create a simple magazine app with core text
Please notice that CoreText is only available for iOS 3.2 or superior.

Resources