Let iOS macOS Chinese font achieve visual vertical centering

In the development off the grid when the input method macOS,I encountered a problem of a more wonderful,This problem has plagued me now - the time when some places need to display a row of vertically centered text,How to make these characters real "center"?

 

At first glance this seems to make much sense,Well ...... like vertical center,On macOS NSTextField Really no way to get your line of text vertically centered ...... 🤷♂️

The first generation of programs

later,Well, I[……]

Click link to continue reading...

independently developed iOS:Manage your redemption code

As iOS developer you,Promo codes must be aware of this thing,That is, we often say that the redemption code。(of course,As perhaps you iOS users also no stranger to this)

this time,We take a look,This seemingly endless redemption code,What are the restrictions in the end。

Validity

Apple background rendering valid redemption code has been a mystery,Although the official statement of 4 week,That is 28 day,But in fact this period if your app update,Then the redemption code will most likely fail[1]。

&nbs[……]

Click link to continue reading...

Swift in the array to re-program

When developed using Swift input pocketed,I met a very interesting question -Deduplication

All to known,Candidate input method in the calculation will always be out there may be a duplicate options (such as code table and have a word in the lexicon,They may be different coding,But the word is the same and the like),This time you need to re,But while keeping the same order of candidates。

Others solutions

If you go online to find,Then you may find is this:

source:[……]

Click link to continue reading...

Good office software,Everyone ultimately,。Office 365,You go!

This is what office software,Word processing、Table editing、The famous "ppt" slide,After graduation I almost touched Microsoft no longer tied,Occasionally need to use a text editor is Apple's iWork series (of course, writing papers or something, forget it),In short,This time I want to soft again,Push Office 365.

In fact, Microsoft's Office suite,It may still use pirated - this is an excellent opportunity to whiten it - cheap enough。

 

Stakeholders

mine Pocketed input macOS 2 The Chinese district[……]

Click link to continue reading...

Pocketed input macOS 2 How is optimized for VoiceOver

Two years ago,I wrote an article entitled "ios VoiceOver support for visually impaired users"Articles,Inside describes how iOS end of the necessary support for VoiceOver,Then I developed a macOS input terminal pocketed,But unfortunately due macOS own system bug,Third-party input method can not obtain focus VoiceOver (mainly 10.13 And below),So I will not have too much attention - even until the end of this input method throughout the life cycle failed to achieve V[……]

Click link to continue reading...

and: 1: “…”: invalid command code

use Linux Friends might be more familiar with the command,It can quickly and text documents in batches to operate in the script,For example a row or alternatively change the specific content ......

macOS Naturally have this command,But one thing is not quite the same,If you execute and -i ,So probably you will get a strange error and: 1: “…”: invalid command code

 [……]

Click link to continue reading...

DoT DoH addition DNSCrypt,You can also learn more about the DNS encryption scheme

2018On November 2nd update,One day after switching to DoT,All stubby built-in server running unusually slow,Until daily use is immune to give up ......。

2018On November 1st update,used 5 After days DoH,Since the server is currently offering this service only 1.1.1.1,I was here at this address operators blocked。

 

 

three years ago[……]

Click link to continue reading...

swift4 urlSession get and post requests network

Ado,Directly on the code。

GET:

POST:

 

Four small rocket Shadowrocket Advanced Configuration

Using small rocket for a long time,Many of my friends say,Small rocket Shadowrocket Unstable,Old out of their own background,I would say this is how I use it。

Previous iOS does not support this type of VPN applications,Every time over the wall on iOS,We are a people thing painstaking。Later Surge appeared ...... my first time to buy,of course,Later, Lower shelf Surge,I also completely change the Apple ID of the United States District,I would not buy another copy Surge,Instead bought relatively cheap Shado[……]

Click link to continue reading...