首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

本地通报

2012-07-18 
本地通知UILocalNotification *notification [[UILocalNotification alloc] init]if (notification !

本地通知

UILocalNotification *notification = [[UILocalNotification alloc] init];if (notification != nil) {NSDate *now = [NSDate new];notification.fireDate = [now dateByAddingTimeInterval:5];notification.alertBody = @"时间到!";[[UIApplication sharedApplication] scheduleLocalNotification:notification];[notification release];}

?

热点排行