I have a UILabel named "Notifiction Sound". In my gestures on the hard drive, I want to open the list of default alerts for the iOS device. When you select any of these warning signals, the selected beep should be set as my local beep. How to implement this?
In addition, I want to add vibration on / off settings for local notification. I have successfully checked if UISwitch vibration is turned on. When the switch is on, I used the following code to set the vibration. Tested this on an iPhone, but it didn’t work. Any idea how to implement it?
And does sound and vibration work together for local notification?
if([[UIDevice currentDevice].model isEqualToString:@"iPhone"])
{
AudioServicesPlaySystemSound (kSystemSoundID_Vibrate);
}
else
{
AudioServicesPlayAlertSound (kSystemSoundID_Vibrate);
}