本地通报

本地通知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];}

?