In our daily lives, input method is an indispensable tool. While we using input method, we usually use the input way of Pinyin. However, the phenomenon of pressing the wrong button or spelling correct but chosing wrong candidate, which reduce the efficiency. With the popularity of smart phone in our country, Android and i OS are two common operating systems used on smart phone. There are many input methods based on Android, while due to the closure of i OS, there was only system input method on i OS devices before i OS 8, and it couldn’t meet user needs, users need more input methods appear. So, developing the Chinese input method based on i OS is very necessary.Before i OS 8 was released, no research was found about the third-party Chinese input method abroad and only a few jailbreak developed Chinese input methods which need to be jailbreaked brefore installation in China. While i OS 8 was released, Apple announced to open the third-party input method interface, which provided a more convenient way to develop the Chinese input method on i OS.This paper took the CKC input method as an sample, which is a digital input method, designed and implemented a Chinese input method based on i OS, including jailbreak version and non jailbreak version. This paper can be concluded as follows.1) This paper explored the i OS API for input method. It first accessed to the private framework, explored the private framework to gain the input method API using jailbreak technology in i OS 4/5/6 stage, and then explored the opening third-party input method API and the limits of third-party input method in i OS 8 stage.2) Using the CKC input method as an sample, this paper analyzed the basic functions of the Chinese input method and designed two different frameworks of input method in i OS 4/5/6 and i OS 8 stage respectively. It also designed the UI and switching logic of keyboard, which including Chinese keyboard and English keyboard and so on. It designed the UI of preference setting.3) This paper introduced the implementation technologies of the Chinese input method. It introduced the common technologies used in i OS 4/5/6 and i OS 8 stage, such as drawing the keyboard layout, responding the key input, etc. It also introduced different technologies used in i OS 4/5/6 and i OS 8 stage respectively, such as compiling and packing technology in i OS 4/5/6 stage and saving user data in i OS 8 stage, etc.The paper implemented a Chinese input method based on i OS platform, to provide a convenient Chinese input method for the old people who can’t understand Pinyin, for the group who always confuse Pinyin with dialect, for the ethnic minorities or foreign friends who want to learn Chinese. It provide a reference for other input methods while moving to mobile platform, and can promote the development of digital input technology and Chinese input technology. |