本地通知(Local Notifications)

基于类库: MonoTouch.UIKit

使用方法:

UILocalNotification alarm = new UILocalNotification ();
alarm.FireDate = DateTime.Now;
alarm.TimeZone = NSTimeZone.DefaultTimeZone;
alarm.RepeatInterval = 0;
alarm.AlertBody = "alarm content";
alarm.SoundName = "music.mp3";
UIApplication.SharedApplication.ScheduleLocalNotification(alarm);

posted @ 2013-07-30 11:01  AndresChen  阅读(139)  评论(0)    收藏  举报