I pocketed the input method users add automatic reply robot

If that FIG.,I pocketed the input method of the user group broke a Robot,As the user off the grid input method more and more,Some admiring novice more。Many common problems repeated questions,Made people battered,If you can have a robot,Like Siri as,It automatically captures those keywords and then respond to these users,Not Miya? So that users can get answers carefully edited,And I can free up more time for you to write code on behalf wan xi。

of course,Such a robot I've ever seen,So I think there must be something ready-made,Obviously,Under the first search I found this[……]

Click link to continue reading...

Swift is determined whether there is a string expression Emoji

Update:The network spread emoji Code pointNot complete,I follow Wikipedia-refresh a bit,The paper version of the code was updated Swift。

Many times we need to determine a character、Or that there is not a word that contains the emoji,Use Swift language development app is no exception,For example, you can use a regular expression - but unfortunately,It seems different language support for regular expressions distinction, \in [……]

Click link to continue reading...

Pocketed input method is how to achieve app settings without the need for full access?

All to known,On iOS since 8.0 Start version,Keyboard can be developed for iOS third-party input method,These keyboards can be sold on the AppStore,but,But also has a very strict access rules。

This,Apple's third-party keyboard design of the two permissions,A minimum of,Permissions Only the most basic functions of the keyboard、Another relatively more,Get the keyboard "Full Access"Basically after permission and android Almost on the keyboard,You can access contacts、It can be networked, etc.。

but[……]

Click link to continue reading...

Could not load the “” image referenced from a nib in the bundle with identifier “com.xxx.xxx”

Today, I encountered a strange problem,Program runs no problem at all but the terminal given as follows

In fact, it is wrong on the subject,This question seems quite simple - not that the pictures referenced lost it ......

actually not,Since the name is "" So you can not find what exactly is the picture lost - a fact not lost。

After all, the program does not have a resource inside[……]

Click link to continue reading...

Write off the grid a little life experience of the past six months input obtained

He says you may not believe,Pocketed input method originally I practiced hand of a project,It's calledBoats

But in the hands to write it before,In fact, I had complained many times,They say they want to write a useful input method,Because I used Larry,The existing input method,Larry did not pay attention to how this group,The same time,Speaking on spelling,Various advertising pop red dot also put their own utility functions ah ah sentence input to these advantages buried。

until 2015 year 11 moon 7 day,The first time I had to write a small input of ideas:

Now most of the input method on iOS bloated[……]

Click link to continue reading...

CloudKit Optimization Guide

Recently added to the input method pocketed called "Logarithmic Cloud"s things,It is not difficult,Simpler than using iCloud Document,But not too much information online,You started by those tutorials to real life should not be a problem,But want to enhance the user experience,It is not so easy。Here we take a look at,How to get CloudKit run more fun。

CKDatabaseOperation

In General,You get a data might look like this:
[crayon-676afbb3dd40[……]

Click link to continue reading...

Let iTrem 2 + zsh startup no longer wait!

iTerm as a built-in terminal mac alternatives really handy,Multi-function、Interface is also nice。Skin with zsh +,Since then, the terminal also beautiful (thematic map)。

but,zsh is always very slow start,Although the content before each start input is still not lost,But always waiting is not a thing (to tell the truth,I have endured so many years ......)

In short,In fact, this problem can be solved:

Enter iTerm2 preferences in,Edit your configuration in the Profiles,In the configuration on the right side of the Ge[……]

Click link to continue reading...

Swift in the use cmph

cmph It stands for C Minimal Perfect Hashing Library ,It is a very well-known, written in C minimal perfect hash library,What is a perfect hash?

Perfect hashing

Here we do not speak principle,You just need to know that the traditional hash conflict,We need to rely on a variety of algorithms to deal with conflict can be,For hash,Always need a table,This table reserved many locations,Then the calculated value is the coordinates of these locations,You can put data into the corresponding coordinate in。

But this time there is a problem,in case[……]

Click link to continue reading...

A quick look at the string

Most of the time,We need to look at many strings,To determine the specific content filtering out。For example, through the input method which pocketed,We need to use auxiliary code word to filter out candidates need。

In General,Find and Compare certainly figures to fastest,However, in the lexicon we can not put all the words are converted to digital (although theoretically feasible ......) search on the string,We realize there are many ways to,Here, I say my own ideas:

Set<String>

Since my thesaurus secondary screening is effective only for code words or word vocabulary,Then I consider[……]

Click link to continue reading...