音频文件地址:http://pan.baidu.com/s/1eQsuE0y
在mono中需要引用:using MonoTouch.AudioToolbox;
Resources文件夹中添加音频文件,并设置Bulid Action模式为BundleResource
代码:
private SystemSound sound = null;
if (sound == null) {
var audioFile = NSUrl.FromFilename ("alarmPush.caf");
sound = SystemSound.FromFile (audioFile);
}
sound.PlaySystemSound ();