Sliding window is an interesting concept. In terms of TCP, receiver’s window represents the amount of data that the receiver is willing to accept. In this article, we will cover TCP sliding windo...
可以在代码文件中声明一个receiver,也可以在manifest中声明一个,前者中的receiver只有在该activity launch起来以后才会监听其所感兴趣的事件,而如果在androidManifext.xml中声明的话,就不受限制,随时可以监听感兴趣的事件。 1. 首先谈谈在androi...
分类:
移动开发 时间:
2015-11-06 10:51:49
阅读次数:
201
Running a Loop 1,run: Puts the receiver into a permanent loop, during which time it processes data from all attached input sources. Discussion If no input sources or timers are attached to the run ...
分类:
其他好文 时间:
2015-10-27 13:39:21
阅读次数:
255
1、connect[cpp]view plaincopyconnect(sender,SIGNAL(signal()),receiver,SLOT(slot()));这里用到了两个宏:SIGNAL() 和SLOT();通过connect声明可以知道这两个宏最后倒是得到一个const char*类型。...
分类:
其他好文 时间:
2015-10-16 20:36:03
阅读次数:
265
能给CGRect发消息么? 答案是不能,只能给Objective-C对象发消息,CGRect是结构体,所以不行!明确几个概念 receiver(消息接收方):指针,指向执行方法的对象 selector(选择器) ? ? ?:需要执行方法的方法...
分类:
其他好文 时间:
2015-10-16 01:12:16
阅读次数:
155
在Java/C#等面向对象语言中,方法的访问权限可以通过public/private/protected来控制其访问权限。而在OC中,方法却并没有访问修饰符。那么,我们有没有办法使其方法变为私有?1. 如果一个方法不在头文件中声明,那么这个方法在编译期,通过[receiver MethodName]...
分类:
其他好文 时间:
2015-10-11 11:24:48
阅读次数:
136
MainActivity:public class MainActivity extends Activity { private MyReceiver receiver; private Button btnStartOrPause; private String receive...
分类:
其他好文 时间:
2015-10-08 21:20:38
阅读次数:
275
在上一篇博文中简单介绍了一下BroadcastReceiver的相关知识点,本篇举一个在代码中动态的注册、注销BroadcastReceiver的栗子。1、首先创建一个MyReceiver并继承BroadcastReceiver,既然要动态注册该receiver的话,就无需在AndroidMan.....
分类:
移动开发 时间:
2015-10-06 10:24:16
阅读次数:
250
自己最近在学习Android过程中,下载了一个Demo尽然不能取消设备管理器,也不能卸载。自己猛一想这事如何实现的? 首先AndroidManifest.xml: ? Xml代码?? <receiver?? ????????????android:nam...
分类:
移动开发 时间:
2015-09-22 19:13:19
阅读次数:
163
- awakeFromNib Prepares the receiver for service after it has been loaded from an Interface Builder archive, or nib file. Declaration SWIFT func awake...
分类:
其他好文 时间:
2015-09-22 16:12:39
阅读次数:
271