// 1、打开本地推送并设置属性
NSString *str = @"本地推送的信息";
UIApplication *app = [UIApplication sharedApplication];
UILocalNotification *notification = [[UILocalNotification alloc]init];//初始化本地推送
notification.soundName = UILocalNotificationDefaultSoundName;//设置声音
notification.alertBody = str;//设置推送的消息
[app scheduleLocalNotification:notification];//实现本地推送的关键步骤,
[notification release];
[str release];

// 通过上面的方法可以实现推送的效果

2、本地推送的接受方法

- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification 
												

最新文章

  1. ORACLE编译失效对象小结
  2. JavaScript为select添加option,select选项变化时的处理,获取slelect被选中的值
  3. Oracle RAC inventory.xml损坏后如何修复
  4. C#窗体->>随机四则运算
  5. tyvj1012 P1012 - 火柴棒等式 ——暴力枚举
  6. Intellij IDEA 使用Spring-boot-devTools无效解决办法
  7. 通过Driver获取数据库连接
  8. zhuan:点滴记录——Ubuntu 14.04中gedit打开文件出现中文乱码问题
  9. linux进程间通讯-System V IPC 信号量
  10. c#语言基础编程—string
  11. perl 对象 通过bless实现
  12. 基于VMware的eCos环境编译redboot(脚本配置redboot)
  13. Gradle+Jetty实现静态资源的热部署
  14. php方法综述除去换行符(PHP_EOL使用变量)
  15. 虚拟键盘冲击移动端fixed布局的解决方案
  16. JavaScript中for循环的使用详解
  17. Python Web框架篇:Django Model基础
  18. 简单的接口测试类和测试生成报告工具HTMLTestRunner.py
  19. final关键字总结
  20. 爬虫(四)requests模块1

热门文章

  1. 翻译: 星球生成 II
  2. 算法习题-FFT
  3. 转【Zabbix性能调优:配置优化】
  4. jQuery 动态标签生成插件
  5. MapReduce (hive表SequenceFile的结果做输入)、MultipleOutputs和Reduce端迭代iterable的一些说明
  6. java类的定义
  7. Centos7 设置静态IP后重启网络服务出错
  8. C++中的二级指针和指针引用函数传参
  9. hdu 1254 推箱子(双重bfs)
  10. Oracle DataTable的数据批量写入数据库