`
jsntghf
  • 浏览: 2482506 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

本地通知

    博客分类:
  • iOS
阅读更多
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];
}

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics