视频 1 // MARK: - 播放视频 2 /*----- 播放视频 ------*/ 3 4 5 func moviePlayerPreloadFinish(notification:NSNotification) 6 { 7 prin...
分类:
移动开发 时间:
2015-06-07 23:07:47
阅读次数:
181
LAMP+LVS+KEEPALIVED(四)#keepalived.conf配置说明,BACKUP需要更改state和priority优先级#全局配置,主要配置报警邮件地址、snmp监控等等。global_defs{notification_email{root@lvs.local}notification_email_fromAlexandre.Cassen@firewall.locsmtp_server192.168.10.89sm..
分类:
其他好文 时间:
2015-06-06 23:45:31
阅读次数:
251
转自:http://blog.csdn.net/liliangchw/article/details/8276803对象之间进行通信最基本的方式就是消息传递,在Cocoa中提供Notification Center机制来完成这一任务。其主要作用就是负责在任意两个对象之间进行通信。使用方法很简单,如下...
分类:
移动开发 时间:
2015-06-06 23:17:39
阅读次数:
217
iOS中NSNotification、delegate、KVO三者之间的区别与联系?delegate、notification和KVO他们的功能比较类似,那么在实际的编程中,如何选择这些方式呢? 在开发ios应用的时候,我们会经常遇到一个常见的问题:在不过分耦合的前提下,controllers间怎....
分类:
移动开发 时间:
2015-06-06 11:53:39
阅读次数:
135
void CEditControlDlg::OnClickedButton()
{ // TODO: Add your control notification handler code here //获得EDIT CEdit* pBoxOne; pBoxOne = (CEdit*) GetDlgI...
分类:
编程语言 时间:
2015-06-06 11:50:44
阅读次数:
807
Notification简介Notification位于手机饿最上面,用于显示手机的各种信息,包括网络状态,电池状态,时间等。属性方法介绍代码示例package peng.liu.test;import android.app.Activity;
import android.app.Notification;
import android.app.NotificationManager;
impo...
分类:
移动开发 时间:
2015-06-06 09:14:49
阅读次数:
199
原文:http://blog.csdn.net/dqjyong/article/details/7685933前面分别讲了delegate、notification和KVO的实现原理,以及实际使用步骤,我们心中不禁有个疑问,他们的功能比较类似,那么在实际的编程中,如何选择这些方式呢? 在网上看到一个...
分类:
移动开发 时间:
2015-06-05 21:11:33
阅读次数:
180
1. ViewController的didReceiveMemoryWarning怎么被调用:[supper didReceiveMemoryWarning];2.什么时候用delegate,什么时候用Notification?delegate针对one-to-one关系,用于sender接受到re...
分类:
其他好文 时间:
2015-06-05 17:30:25
阅读次数:
5266
PendingIntent的flag标志如下:FLAG_CANCEL_CURRENT:如果当前系统中已经存在一个相同的PendingIntent对象,那么就将先将已有的PendingIntent取消,然后重新生成一个PendingIntent对象。FLAG_NO_CREATE:如果当前系统中不存在相...
分类:
移动开发 时间:
2015-06-05 15:26:29
阅读次数:
144
epoll - I/O event notification facility在linux的网络编程中,非常长的时间都在使用select来做事件触发。在linux新的内核中,有了一种替换它的机制,就是epoll。相比于select,epoll最大的优点在于它不会随着监听fd数目的增长而减少效率。由于...
分类:
其他好文 时间:
2015-06-05 12:01:15
阅读次数:
146