用在通知栏和桌面小部件。跨进程显示界面。RemoteViews中真正操作View的方法apply和reapply,前者会加载布局并更新界面,后者则只更新界面。通知栏:如果使用自定义Notification的话,需要用到RemoteViews来加载布局文件改变通知样式。remoteView更新View...
分类:
其他好文 时间:
2016-02-19 18:44:47
阅读次数:
151
远程推送控制台提示Add “Remote-notification”…解决方案 做推送的童鞋可能会遇到这样的问题,控制台会打印一句话: You’ve implemented -[application:didReceiveRemoteNotification:fetchCompletionHandl
分类:
其他好文 时间:
2016-02-17 20:54:09
阅读次数:
204
1 package com.lixu.tongzhi; 2 3 import android.app.Activity; 4 import android.app.Notification; 5 import android.app.NotificationManager; 6 import and
分类:
移动开发 时间:
2016-02-17 18:46:18
阅读次数:
219
UILocalNotification *notification=[[UILocalNotification alloc] init]; if (notification!=nil) { NSDate *now=[NSDate new]; //notification.fireDate=[now
分类:
其他好文 时间:
2016-02-17 13:04:47
阅读次数:
156
UILocalNotification *notification=[[UILocalNotification alloc] init]; if (notification!=nil) { NSDate *now=[NSDate new]; //notification.fireDate=[now
分类:
移动开发 时间:
2016-02-17 11:07:33
阅读次数:
182
delegate 的 优势 : 1.非常严格的语法。所有将听到的事件必须是在delegate协议中有清晰的定义。 2.如果delegate中的一个方法没有实现那么就会出现编译警告/错误 3.协议必须在controller的作用域范围内定义 4.在一个应用中的控制流程是可跟踪的并且是可识别的; 5.在
分类:
其他好文 时间:
2016-02-17 09:32:32
阅读次数:
136
平时在开发中,经常会遇到不同的类之间进行通信,我们平时会有以下几种选择: 1.delegate 2.Notification 3.KVO 特点如下: delegate: 1.语法严格,定义清晰。如协议的定义实现。 2.逻辑清楚,控制流程可跟踪和识别。 3.一个类中可以定义多个协议,每个协议对应不同的
分类:
其他好文 时间:
2016-02-14 19:47:46
阅读次数:
219
OnComponentBeginOverlap事件 当物体有碰撞体,同事碰撞类型设置为OverlapAll时,会触发,同时角色不会被挡住。 这是文档中的OnComponentBeginOverlap的案例代码 // set up a notification for when this compon
分类:
其他好文 时间:
2016-02-12 18:39:09
阅读次数:
258
原文: http://apns-c-sharp-net-vikram-jain.blogspot.com ======================= Please, Install your certificate *.p12 on pc, and take firend name use he
分类:
移动开发 时间:
2016-02-09 01:17:09
阅读次数:
358
原创文章,欢迎转载。转载请注明:关东升的博客 通知(Notification)机制是基于观察者(Observer)模式也叫发布/订阅(Publish/Subscribe)模式,是 MVC( 模型-视图-控制器)模式的重要组成部分。 问题提出 天气一直是英国人喜欢讨论的话题,而最近几年天气的变化也成为
分类:
编程语言 时间:
2016-01-28 18:44:51
阅读次数:
141