cocoa touch - Vibrate iPhone for specified duration -
i able vibrate iphone specified duration. using audiotoolbox framework, vibrate 2 seconds, when use code:
audioservicesplaysystemsound (ksystemsoundid_vibrate);
this job, i'd rather vibrate shorter (or longer) duration depending on how user performed action, not mention benefits offer game developers.
thanks ideas.
you set nstimer or loop set off vibration every 2 seconds , make seem long vibrate. not sure if apple allow tough.
Comments
Post a Comment