Swift 取消本地通知
发布时间:2020-12-14 02:20:21 所属栏目:百科 来源:网络整理
导读:var notifyCancel = UILocalNotification () var notifyArray = UIApplication . sharedApplication (). scheduledLocalNotifications var i 0 while ( i notifyArray count ){ if let notify notifyArray [ ] as ? { let info notify userInfo as Dictionar
var notifyCancel = UILocalNotification() var notifyArray=UIApplication.sharedApplication().scheduledLocalNotifications var i 0 while(i<notifyArraycount){if let notify notifyArray[] as?{ let info notifyuserInfo asDictionary<String,> let s info["name"ifname==s){//name is the the one you want cancel notifyCancel notify break}} i++ } (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- XML 的 Dom4j 解析范例,以及 XPath
- ${pageContext.request.contextPath}的作用
- ruby-on-rails – rails to_xlsx无法找到所有具有’id’的漏
- ios – 如何在标签栏控制器中添加“入口点箭头”?
- ruby-on-rails – 覆盖Ruby的宇宙飞船操作符<=>
- ruby – Capifony数据库函数失败并出现`require’:无法加载
- xml – 为什么XPath不干净?为什么谓词中不需要text()?
- ruby-on-rails – 如何为亚马逊s3图像添加过期标题?
- sqlite3
- ruby-on-rails – Rails插件