Triggering Vibration

| No Comments | No TrackBacks
Applications running on iPhone--but not the iPod touch--can trigger vibration using System Audio 
Services. The vibrate option is identified using the kSystemSoundID_Vibrate identifier. To trigger 
it, use the AudioServicesPlaySystemSound function in the Audio Toolbox framework, as shown 
here. 

#import <AudioToolbox/AudioToolbox.h> 
#import <UIKit/UIKit.h> 
- (void)vibratePhone 

AudioServicesPlaySystemSound(kSystemSoundID_Vibrate); 

No TrackBacks

TrackBack URL: http://iphone.ipsw.info/mt/mt-tb.cgi/211

Leave a comment

About this Entry

This page contains a single entry by lvyile published on September 17, 2008 11:10 AM.

10.5.5 Update OK! was the previous entry in this blog.

Makefile is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.