iOS 浅谈本地通知 UILocalNotification
来源:互联网 发布:高性能网络编程框架 c 编辑:程序博客网 时间:2024/06/05 00:39
1、创建本地通知
UILocalNotification *local = [[UILocalNotification alloc] init];
2、设置通知显示的时间
local.fireDate = [NSDate date];
3、设置默认时区
local.timeZone = [NSTimeZone defaultTimeZone];
4、设置提示内容
local.alertBody = @"JPG下载完成,请即时查看!";
5、这个通知到时间时,你的应用程序右上角显示的数字。
local.applicationIconBadgeNumber = 1;
6、设置提示声音
local.soundName = UILocalNotificationDefaultSoundName;
7、设置小图标
local.applicationIconBadgeNumber = 1;
8、向应用程序发送本地通知
[[UIApplication sharedApplication] scheduleLocalNotification:local];
好了,就大概讲到这里了,可能不是很全面,但希望能对大家有帮助
0 0
- iOS 浅谈本地通知 UILocalNotification
- iOS本地通知UILocalNotification
- IOS 本地通知 UILocalNotification
- ios本地通知UILocalNotification
- iOS UILocalNotification本地通知
- iOS本地通知:UILocalNotification
- iOS本地通知:UILocalNotification
- iOS UILocalNotification本地通知
- iOS本地通知:UILocalNotification
- iOS本地通知:UILocalNotification
- iOS UILocalNotification本地通知
- iOS本地通知 UILocalNotification
- iOS 本地通知:UILocalNotification
- ios推送:本地通知UILocalNotification
- ios推送:本地通知UILocalNotification
- ios推送:本地通知UILocalNotification
- ios推送:本地通知UILocalNotification
- iOS中的本地通知UILocalNotification
- 欢迎使用CSDN-markdown编辑器
- C++找对象的季节(补)——MyVector
- 《从LRS项目重构看如何做UI设计——组合查询的界面创意设计(一)》
- 【JS总结】——Document Object Model(DOM)
- 操作系统学习(一)
- iOS 浅谈本地通知 UILocalNotification
- java开源jar包
- C++找对象的季节(补)——MyString
- CSUOJ--1633 Landline Telephone Network
- 第十一周上机项目1 是春哥啊
- 【SDOI2009】【BZOJ1876】SuperGCD
- Mysql中文乱码问题完美解决方案
- 推测的删除锁(Speculative Lock Elision):实现高并发多线程执行
- c#运用——简体字转繁体字