Skip to content

標籤: iOS

清除電腦裡面重複的 App 安裝檔,增進更多可用空間

很多人可能不知道,有時候 iTunes 不知道為什麼,會把舊版的 App 安裝檔(副檔名為 .ipa ,以下簡稱 ipa)保存在電腦中,與新版共存。如果你不是有特殊目的,要保留降級版本的話,這些 ipa 檔案在無形之中會佔用不少空間。所以今天要介紹給大家的就是如何快速找出重複的 ipa,並且刪除,釋放硬碟可用空間。

How to download legacy versions of iOS apps

Everyone knows that we can’t downgrade any iOS apps without a backup file (.ipa) of that App. Because of some reasons, such as critical bugs or lacking of features… sometimes we may want to downgrade our iOS apps. For me, I always use TimeMachine on my Mac, so I can access IPA from my backup. However, most of the users don’t backup their stuffs. That’s why I write this tutorial, with the following steps, you can download any versions of specific iOS app.

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.