Helper code for iOS apps.