Notice that it always sends itself as the first argument to the delegate method.
注意:它总是把自己作为第一个参数传递给它的委托方法。
These all accept a delegate, usually in the form of an anonymous method.
这些操作都可以接受一个委托,一般可以使用匿名方法的方式来传递。
You can see the tableView delegate and data source set below in the viewDidLoad method.
可以看到在viewDidLoad方法中设置了tableView委托和数据源。
The updateCD() method delegates most of its responsibility to the business delegate.
updateCD()方法可以代理业务代理的大部分职责。
A delegate is an object that contains a reference to a method.
委托是包含有对一个方法的引用的对象。
A Delegate is a reference pointer to a method.
委托是一个方法的引用指针。
Create an instance of the delegate, using a reference to the event handler method.
使用对该事件处理程序方法的一个引用创建委托的一个实例。
These all accept a delegate , usually in the form of an anonymous method.
这些操作都可以接受一个委托,一般可以使用匿名方法的方式来传递。
Associating the delegate with an anonymous method.
使委托与匿名方法关联。
How can I pass a parameter to a delegate callback method?
我如何传递参数给委托的回调方法?
The delegate in turn calls the bound method.
委托接着调用绑定的方法。
An instantiated delegate can be invoked as if it were the wrapped method itself.
经过执行个体化的委派可当做被包装的方法本身叫用。
In other words, a method must have the same return value as the delegate.
换句话说,方法必须与委派有相同的传回值。
When you create a delegate, you identify the method that will handle the event.
创建委托时,请标识将要处理事件的方法。
A delegate is a type that defines a method signature.
委派是定义方法签章的型别。
NET方法取代成委派。
Declare a class that contains a method with the same signature as the delegate.
宣告类别,其中包含的方法具有和委派相同的签章。
The declaration of a delegate type is similar to a method signature.
委派型别的宣告与方法签章类似。
A delegate is a class that can hold a reference to a method.
委派是存有某一方法之参考的类别。
A delegate is a class that can hold a reference to a method.
委派是存有某一方法之参考的类别。
应用推荐