Skip to content

分類: 技術研究

iOS 13.1.1 之後,在香港、澳門的 Emoji 鍵盤不會出現中華民國國旗了

中華民國國旗,也就是「🇹🇼」符號,長久以來一直無法在中國版、或者設定地區為中國的 iPhone 使用,相信這是大家早就知道的事情。然而根據使用者回報,在 iOS 13.1.1 之後,在香港的 iPhone 上,Emoji 鍵盤中的「🇹🇼」居然消失了?!

Using Taptic Engine Without Private API

Few days ago, I learned that some developers call the “Peep” and “Pop” haptic feedback by using private APIs. For example, https://github.com/peterbaral/TapticPeekAndPop and http://unifiedsense.com/development/using-taptic-engine-on-ios.html

However, as they mentioned, these methods use private APIs. It means that you can’t submit an application with these methods. Fortunately, there’s a method that can use Tapic Engine, with public API, and it’s more easier.

So, let’s start!

Firstly, there’re three (not two!) kinds of haptic feedbacks in iOS 9.

  1. Peek
  2. Pop
  3. Double Peek (For example, press an icon which doesn’t support home screen menu.)

Most developers know that we can call vibrate by using

Just like kSystemSoundID_Vibrate, there’re the values for haptic feedback.

The values are:

All you need to do is import AudioToolbox.framework and call these functions.

Then, it just work.