Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A "Hello World" to doing a vibration in pure C, on iOS.
// To compile:
// gcc -framework AudioToolbox iOS-Vibrate.c -o iOS-Vibrate
#include <AudioToolbox/AudioServices.h>
int main() {
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment