Skip to content


Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


The Ultimate Parental Gate is designed to help block children from accessing in app purchases within an app. Most "Parental Gates" simply ask a math question or provide a question that a child can figure out by randomly selecting an item on the screen. This is unique in it requires both math and dexterity skills to succeed, which typically a child does not have at a young age.

The way it works is a view is presented to the user, which asks a simple math question in sentence form. The possible answers are displayed inside a number of balls that move around the screen at a random rate. The user has to then tap the answer and drag it to a small square in the corner of the view before time runs out. If the user selects the wrong answer too many times, it will exit the gate. If the user makes too many overall attempts in a row, it will lock the user out of the app for a few minutes (all of these values are customizable). Thus, making this the "Ultimate" Parental Gate.

This is the same Parental Gate used in the popular special needs app, SpeechBox for iPad ( Therefore, this has been tested for over a year in both home and clinical environments, and have yet had a child get past the gate. This doesn't mean it's perfect, but it provides more security than other solutions.

If anyone can help localizing this, please create and issue or pull request.

Adding to your project:


CocoaPods is the recommended way to add HTKDragAndDropCollectionViewLayout to your project.

  1. Add a pod entry for HTKUltimateParentalGate to your Podfile pod 'HTKUltimateParentalGate', '~> 0.0.4'
  2. Install the pod(s) by running pod install.
  3. Import HTKParentalGateViewController.h where you will use it.
  4. Register for the HTKParentalGateValidationStateChangedNotification notification in the class you want to receive state changes to. You'll receive notifications such as when the user failed or passed successfully.
  5. The notification returns the HTKParentalGateValidationState value in the userInfo dictionary in the HTKParentalGateValidationStateChangedKey key, which is the validation state of the gate.
  6. The gate automatically dismisses on failed/success attempts and displays and alertView on failed attempt to the user. You can customize the messages in the constants file. At a minimum you just need to present the next view on success.
  7. If you would like to add/modify the questions, they are located in the HTKParentalGateQuestions.plist.

Sample video:

YouTube Sample Video

Screen shot:

Sample Screenshot

Change log:

v0.0.1: Initial project commit. v0.0.2: Forgot to include plist in original pod. v0.0.3: Fix to podspec. v0.0.4: Added full screen option and fixed bug w/ popovers.

Questions? Email: or Web:


The Ultimate Parental Gate to help block children from accessing in app purchase. Combines both math and dexterity skills to be very challenging.







No packages published