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 Years 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-6725664e1666[……]

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...

Based on Dynamic Programming sentence input method

In General,We will not call it on the issue of dynamic programming algorithm is "Dynamic Programming”,But called "Hidden Markov Models”,but,If we simply use the dynamic programming algorithm to solve a common directed acyclic graph,Then it can only be said to be dynamic planning ......

This time we want for the,It is based on the sentence input method thesaurus。The hidden Markov model is not based on the state transition Solution。

Thesaurus

Since no model,Our sentence input is based on words,We need a thesaurus。The thesaurus should record the most ordinary common vocabulary,And there is a[……]

Click link to continue reading...

ios VoiceOver support for visually impaired users

In fact, few users know,ios system is actually a complete set of easy access mechanism,Many blind or visually impaired users prefer to useiphone

So,As a developer,I think both in terms of product sales or as a side responsibility,We should do well to easily access support。

Fortunately, however,,Thanks to Apple's strict development standards,It is generally as long as your app can be added to already approved,So basically VoiceOver It has been able to identify most of your app in the,More generic,For example tabV[……]

Click link to continue reading...