objective c - issue while vibrating iPhone ios sdk -
i want vibrate
, flash light
simultaneously.but when use following code flash light
.
if (some condition) { audioservicesplaysystemsound(ksystemsoundid_vibrate); [self settorch:yes]; }
but when use
audioservicesplaysystemsound(ksystemsoundid_vibrate);
my phone vibrates.
i unable find issue.
find gonna vibrate device alert user? read first
both functions vibrate iphone. when use first function on devices don’t support vibration, plays beep sound. second function on other hand nothing on unsupported devices. if going vibrate device continuously, alert, common sense says, use function 2.
audioservicesplayalertsound(ksystemsoundid_vibrate); audioservicesplaysystemsound(ksystemsoundid_vibrate);
Comments
Post a Comment