///
/// 接收用户消息
/// iftrue
/// 2014-07-08
///
public class Receive
{
public delegate Models.Send_Msg delegate_SendMsg(string msgType);
public delegate...
分类:
微信 时间:
2014-07-18 23:11:20
阅读次数:
519
Enable Horizontal scrolling and disable Vertical scrolling:myWebView.scrollView.delegate = self;[myWebView.scrollView setShowsVerticalScrollIndicator:...
分类:
Web程序 时间:
2014-07-18 17:27:37
阅读次数:
286
iOS页面间传值的方式(NSUserDefault/Delegate/NSNotification/Block/单例)实现了以下iOS页面间传值:1.委托delegate方式;2.通知notification方式;3.block方式;4.UserDefault或者文件方式;5.单例模式方式;6.通过...
分类:
移动开发 时间:
2014-07-18 15:01:43
阅读次数:
286
今天浏览jQuery的deprecated列表,发现live()和die()在里面了,赶紧看了一下,发现从jQuery1.7开始,jQuery引入了全新的事件绑定机制,on()和off()两个函数统一处理事件绑定。因为在此之前有bind(), live(), delegate()等方法来处理事件绑定...
分类:
Web程序 时间:
2014-07-17 23:12:23
阅读次数:
270
定义block和定义delegate一样,都是在得到需要的值那个页面的类里定义。 eg:A类、B类,我要将A类中的值传给B类,那么我就到A类中定义block,B类取值就可以了。。。。 For example:第一步: A类中: .h文件: #import "BaseView...
分类:
其他好文 时间:
2014-07-16 18:09:59
阅读次数:
214
A delegate is a type that safely encapsulates a method, similar to a function pointer in C and C++. Unlike C function pointers, delegates are object-o...
分类:
其他好文 时间:
2014-07-16 15:43:31
阅读次数:
228
//Demo1:Declaring an event in an interface and implementing it in //a class.// event_keyword.csusing System;public delegate void MyDelegate(); // de.....
分类:
其他好文 时间:
2014-07-16 15:41:01
阅读次数:
246
问题地址:Specifying a delegate for the value of onupdate in iTween1、找到 void CallBack2、修改以下代码:void CallBack(string callbackType){ if (tweenArguments.Con...
分类:
其他好文 时间:
2014-07-14 23:05:31
阅读次数:
323
开发IOS时经常会使用到UIAlertView类,该类提供了一种标准视图,可向用户展示警告信息。当用户按下按钮关闭该视图时,需要用委托协议(Delegate protocol)来处理此动作,但是要设置好这个委托协议,就得把创建警告视图和处理按钮动作的代码分开。UIAlertView *inputAl...
分类:
其他好文 时间:
2014-07-14 22:33:49
阅读次数:
265
首先定义一个runtaketime委托:public delegate int runtaketime(int data,int ms);定义一个静态的方法,参数,返回类型和定义的委托一样 static public int taketime(int data, int ms) ...
分类:
编程语言 时间:
2014-07-14 22:14:45
阅读次数:
312