读书人

本地通报

发布时间: 2012-07-18 12:05:41 作者: rapoo

本地通知

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];}

?

读书人网 >移动开发

热点推荐